Skip to content

Commit ee0a67c

Browse files
committed
codesigning: Use SHA256 as digest for osslsigncode (Windows)
1 parent 38eb91e commit ee0a67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/windeploy/detached-sig-create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CERTFILE="win-codesign.cert"
2525
mkdir -p "${OUTSUBDIR}"
2626
basename -a $(ls -1 "${SRCDIR}"/*-unsigned.exe) | while read UNSIGNED; do
2727
echo Signing "${UNSIGNED}"
28-
"${OSSLSIGNCODE}" sign -certs "${CERTFILE}" -t "${TIMESERVER}" -in "${SRCDIR}/${UNSIGNED}" -out "${WORKDIR}/${UNSIGNED}" "$@"
28+
"${OSSLSIGNCODE}" sign -certs "${CERTFILE}" -t "${TIMESERVER}" -h sha256 -in "${SRCDIR}/${UNSIGNED}" -out "${WORKDIR}/${UNSIGNED}" "$@"
2929
"${OSSLSIGNCODE}" extract-signature -pem -in "${WORKDIR}/${UNSIGNED}" -out "${OUTSUBDIR}/${UNSIGNED}.pem" && rm "${WORKDIR}/${UNSIGNED}"
3030
done
3131

0 commit comments

Comments
 (0)