Permalink
Browse files

GNUmakefile: accept code-signing private key from environment variable

  • Loading branch information...
rianhunter committed May 6, 2014
1 parent cce3f4d commit 3589b5676672b5882d3f653416ac33d349d2574e
Showing with 5 additions and 3 deletions.
  1. +5 −3 GNUmakefile
@@ -375,13 +375,15 @@ ifneq ($(IS_WIN),)
signtool sign //v //s MY //n "Rian Hunter" //fd sha1 //t "http://timestamp.digicert.com" $@.notsigned
mv $@.notsigned $@
else
@echo 'Signining...'; \
@echo 'Signing...'; \
if [ -z $$SAFE_PFX_PATH ]; then printf 'Path to pfx file:'; read SAFE_PFX_PATH; fi; \
if [ -z $$SAFE_PFX_PASSWORD ]; then \
stty -echo; printf 'Password:'; \
read P; \
read SAFE_PFX_PASSWORD; \
stty echo; \
echo; \
osslsigncode sign -pass $$P -h sha1 -t "http://timestamp.digicert.com" -pkcs12 $$SAFE_PFX_PATH -in $@.notsigned -out $@
fi; \
osslsigncode sign -pass $$SAFE_PFX_PASSWORD -h sha1 -t "http://timestamp.digicert.com" -pkcs12 $$SAFE_PFX_PATH -in $@.notsigned -out $@
endif
endif

0 comments on commit 3589b56

Please sign in to comment.