2013-08-09 16:43:59 -04:00
|
|
|
set -x
|
|
|
|
|
2013-09-17 22:31:21 -04:00
|
|
|
JKSSTORE=../primary/keystore.jks
|
2013-08-09 16:43:59 -04:00
|
|
|
cp $JKSSTORE store.jks
|
|
|
|
|
2013-09-17 22:31:21 -04:00
|
|
|
echo "password
|
|
|
|
password
|
|
|
|
password" | keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
|
2013-09-17 22:38:47 -04:00
|
|
|
|
|
|
|
echo '
|
|
|
|
*****************
|
|
|
|
*****************
|
|
|
|
** Enter: "password" 3 times
|
|
|
|
*****************
|
|
|
|
*****************
|
|
|
|
'
|
|
|
|
|
|
|
|
openssl pkcs12 -in store.p12 -nocerts -out store.key
|
|
|
|
|
|
|
|
echo '
|
|
|
|
*****************
|
|
|
|
*****************
|
|
|
|
** Enter: "password" 3 times
|
|
|
|
*****************
|
|
|
|
*****************
|
|
|
|
'
|
|
|
|
|
|
|
|
openssl rsa -in store.key -out final.key
|
2013-08-09 16:43:59 -04:00
|
|
|
|
2013-09-16 14:58:37 -04:00
|
|
|
rm final.crt
|
2013-09-17 22:31:21 -04:00
|
|
|
cat ../primary/selfsignedcert.cer >> final.crt
|