adds the directory structure for keys used by various functions

This commit is contained in:
Timothy Prepscius 2013-08-09 16:43:59 -04:00
parent f66eb18558
commit 5079615e69
16 changed files with 45 additions and 0 deletions

10
keys/.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
*.jks
*.crt
*.b64
*.p12
*.csr
*.keystore
*.cer
*.key
*.certSigningRequest

View File

3
keys/client/make Executable file
View File

@ -0,0 +1,3 @@
keytool -genkeypair -alias client -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -export -alias client -keystore keystore.jks -rfc -file selfsignedcert.cer
keytool -import -alias client -file selfsignedcert.cer -keystore truststore.jks

4
keys/james/final/post-process Executable file
View File

@ -0,0 +1,4 @@
cp ../mail_mailiverse_com.jks .
#keytool -import -trustcacerts -alias root -file ../mail_mailiverse_com/AddTrustExternalCARoot.crt -keystore mail_mailiverse_com.jks
keytool -import -trustcacerts -alias POSITIVESSL -file ../mail_mailiverse_com/PositiveSSLCA2.crt -keystore mail_mailiverse_com.jks
keytool -import -trustcacerts -alias james -file ../mail_mailiverse_com/mail_mailiverse_com.crt -keystore mail_mailiverse_com.jks

2
keys/james/make Executable file
View File

@ -0,0 +1,2 @@
keytool -genkeypair -alias james -keyalg RSA -keysize 2048 -keystore mail_mailiverse_com.jks
keytool -certreq -alias james -keyalg RSA -file mail_mailiverse_com.csr -keystore mail_mailiverse_com.jks

3
keys/key/make Executable file
View File

@ -0,0 +1,3 @@
keytool -genkeypair -alias piratekey -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -export -alias piratekey -keystore keystore.jks -rfc -file selfsignedcert.cer
keytool -import -alias piratekey -file selfsignedcert.cer -keystore truststore.jks

3
keys/localrelay/make Executable file
View File

@ -0,0 +1,3 @@
keytool -genkeypair -alias localrelay.mailiverse -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -export -alias localrelay.mailiverse -keystore keystore.jks -rfc -file selfsignedcert.cer
keytool -import -alias localrelay.mailiverse -file selfsignedcert.cer -keystore truststore.jks

3
keys/mail/make Executable file
View File

@ -0,0 +1,3 @@
keytool -genkeypair -alias piratemail -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -export -alias piratemail -keystore keystore.jks -rfc -file selfsignedcert.cer
keytool -import -alias piratemail -file selfsignedcert.cer -keystore truststore.jks

2
keys/nginx/clean Executable file
View File

@ -0,0 +1,2 @@
rm store.*
rm final.*

12
keys/nginx/convert Executable file
View File

@ -0,0 +1,12 @@
set -x
JKSSTORE=mail_mailiverse_com.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_mailiverse_com.crt > final.crt
cat PositiveSSLCA2.crt >> final.crt
cat AddTrustExternalCARoot.crt >> final.crt

3
keys/push/make Executable file
View File

@ -0,0 +1,3 @@
keytool -genkeypair -alias client -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -export -alias client -keystore keystore.jks -rfc -file selfsignedcert.cer
keytool -import -alias client -file selfsignedcert.cer -keystore truststore.jks