mailiverse/keys/nginx/convert
2013-09-01 18:17:08 -04:00

13 lines
377 B
Plaintext
Executable File

set -x
JKSSTORE=mail_servers.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
cat mail_servers.crt > final.crt
cat PositiveSSLCA2.crt >> final.crt
cat AddTrustExternalCARoot.crt >> final.crt