-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpushAndReload
More file actions
executable file
·25 lines (19 loc) · 1.5 KB
/
pushAndReload
File metadata and controls
executable file
·25 lines (19 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
open ~/mariposa/coding/keysCertificatesStuff.dmg
export P=$(dirname "$0")
[ ! -f $P/.env ] || export $(grep -v '^#' $P/.env | xargs)
cd letsencrypt
cd pente.org
openssl pkcs12 -export -in fullchain.crt -inkey pente.org.key -out fullchain_and_key.p12 -password pass:"$SSL_PWD" -name tomcat -legacy
keytool -importkeystore -deststorepass "$SSL_PWD" -destkeypass "$SSL_PWD" -destkeystore MyDSKeyStore.jks -srckeystore fullchain_and_key.p12 -srcstoretype PKCS12 -srcstorepass "$SSL_PWD" -alias tomcat -deststoretype pkcs12
#scp MyDSKeyStore.jks rainwolf@development.pente.org:/var/lib/tomcat9/webapps/
#scp MyDSKeyStore.jks rainwolf@development.pente.org:~/dockerMain/
#ssh rainwolf@development.pente.org sudo chown rainwolf:tomcat /var/lib/tomcat9/webapps/MyDSKeyStore.jks
#ssh -t rainwolf@development.pente.org sudo /home/rainwolf/restartTomcat.sh
# ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no rainwolf@development.pente.org chown rainwolf:tomcat8 MyDSKeyStore.jks
# ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t rainwolf@development.pente.org sudo ./restartTomcat.sh
scp MyDSKeyStore.jks debian@pente.org:~/dockerMain/
#ssh -t rainwolf@pente.org sudo /home/rainwolf/restartTomcat.sh
# ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no rainwolf@pente.org chown rainwolf:tomcat8 MyDSKeyStore.jks
# ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t rainwolf@pente.org sudo ./restartTomcat.sh
mv MyDSKeyStore.jks /Volumes/keysCertificatesStuff/