mailiverse/keys/nginx/convert-authority

14 lines
447 B
Plaintext
Raw Normal View History

set -x
2013-09-17 22:31:21 -04:00
JKSSTORE=../primary/server.jks
cp $JKSSTORE store.jks
keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
openssl pkcs12 -in store.p12 -nocerts -out store.key
openssl rsa -in store.key -out final.key
rm final.crt
cat authority-response/server.crt >> final.crt
cat authority-response/PositiveSSLCA2.crt >> final.crt
cat authority-response/AddTrustExternalCARoot.crt >> final.crt