mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-21 21:08:48 -05:00
adds the directory structure for keys used by various functions
This commit is contained in:
parent
f66eb18558
commit
5079615e69
10
keys/.gitignore
vendored
Normal file
10
keys/.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
*.jks
|
||||
*.crt
|
||||
*.b64
|
||||
*.p12
|
||||
*.csr
|
||||
*.keystore
|
||||
|
||||
*.cer
|
||||
*.key
|
||||
*.certSigningRequest
|
0
keys/apk/this-is-for-android
Normal file
0
keys/apk/this-is-for-android
Normal file
0
keys/apns/this-is-your-push-certificate-with-apns
Normal file
0
keys/apns/this-is-your-push-certificate-with-apns
Normal file
0
keys/certificates/this-is-your-xcode-certificate
Normal file
0
keys/certificates/this-is-your-xcode-certificate
Normal file
3
keys/client/make
Executable file
3
keys/client/make
Executable 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
4
keys/james/final/post-process
Executable 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
2
keys/james/make
Executable 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
3
keys/key/make
Executable 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
3
keys/localrelay/make
Executable 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
3
keys/mail/make
Executable 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
2
keys/nginx/clean
Executable file
@ -0,0 +1,2 @@
|
||||
rm store.*
|
||||
rm final.*
|
12
keys/nginx/convert
Executable file
12
keys/nginx/convert
Executable 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
3
keys/push/make
Executable 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
|
Loading…
Reference in New Issue
Block a user