mailiverse/keys/nginx/convert-selfsigned
2013-09-17 22:31:21 -04:00

16 lines
421 B
Plaintext
Executable File

set -x
JKSSTORE=../primary/keystore.jks
cp $JKSSTORE store.jks
echo "password
password
password" | keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
echo "password
password
password" | openssl pkcs12 -in store.p12 -nocerts -out store.key
echo "password" | openssl rsa -in store.key -out final.key
rm final.crt
cat ../primary/selfsignedcert.cer >> final.crt