mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-22 00:42:15 -05:00
32 lines
591 B
Plaintext
Executable File
32 lines
591 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 '
|
|
*****************
|
|
*****************
|
|
** 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
|
|
|
|
rm final.crt
|
|
cat ../primary/selfsignedcert.cer >> final.crt
|