mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-09 10:38:05 -05:00
update testsign.sh
This commit is contained in:
parent
80b92fd778
commit
e01da8fb55
@ -1,3 +1,8 @@
|
|||||||
|
=== 1.8 (2015-xx-xx)
|
||||||
|
|
||||||
|
- add support for pkcs11-based hardware tokens
|
||||||
|
(Patch from Leif Johansson)
|
||||||
|
|
||||||
=== 1.7.1 (2014-07-11)
|
=== 1.7.1 (2014-07-11)
|
||||||
|
|
||||||
- MSI: added -add-msi-dse option
|
- MSI: added -add-msi-dse option
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
rm -f putty*.exe
|
||||||
|
|
||||||
|
PUTTY_URL="http://the.earth.li/~sgtatham/putty/0.64/x86/putty.exe"
|
||||||
|
[ -f putty.exe ] || wget -q -O putty.exe $PUTTY_URL
|
||||||
|
[ -f putty.exe ] || curl -o putty.exe $PUTTY_URL
|
||||||
|
|
||||||
|
if [ ! -f putty.exe ]; then
|
||||||
|
echo "FAIL: Couldn't download putty.exe"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
rm -f key.* cert.*
|
rm -f key.* cert.*
|
||||||
|
|
||||||
keytool -genkey \
|
keytool -genkey \
|
||||||
@ -13,6 +24,7 @@ SE
|
|||||||
yes
|
yes
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
echo "Converting key/cert to PKCS12 container"
|
echo "Converting key/cert to PKCS12 container"
|
||||||
keytool -importkeystore \
|
keytool -importkeystore \
|
||||||
-srckeystore key.ks -srcstoretype JKS -srckeypass passme -srcstorepass passme -srcalias selfsigned \
|
-srckeystore key.ks -srcstoretype JKS -srckeypass passme -srcstorepass passme -srcalias selfsigned \
|
||||||
@ -35,7 +47,6 @@ echo "Converting cert to SPC format"
|
|||||||
openssl crl2pkcs7 -nocrl -certfile cert.pem -outform DER -out cert.spc
|
openssl crl2pkcs7 -nocrl -certfile cert.pem -outform DER -out cert.spc
|
||||||
|
|
||||||
|
|
||||||
wget -q -O putty.exe http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
|
|
||||||
../osslsigncode sign -spc cert.spc -key key.pem putty.exe putty1.exe
|
../osslsigncode sign -spc cert.spc -key key.pem putty.exe putty1.exe
|
||||||
../osslsigncode sign -certs cert.spc -key keyp.pem -pass passme putty.exe putty2.exe
|
../osslsigncode sign -certs cert.spc -key keyp.pem -pass passme putty.exe putty2.exe
|
||||||
../osslsigncode sign -certs cert.pem -key keyp.pem -pass passme putty.exe putty3.exe
|
../osslsigncode sign -certs cert.pem -key keyp.pem -pass passme putty.exe putty3.exe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user