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

12 lines
320 B
Plaintext
Executable File

set -x
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/* >> final.crt