working on big setup

This commit is contained in:
Timothy Prepscius 2013-09-17 22:38:47 -04:00
parent 7db9242ed0
commit 7904519ca5
2 changed files with 30 additions and 6 deletions

View File

@ -6,10 +6,26 @@ 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
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

12
setup
View File

@ -15,10 +15,18 @@ pushd passwords
popd
pushd keys
./make
./make
pushd primary
./make-self-signed-key
popd
pushd nginx
./convert-selfsigned
popd
popd
echo Enter the name of your site (example: joesmail.com):
echo 'Enter the name of your site (example: joesmail.com):'
read site
pushd config/hosts