Last active
June 11, 2019 12:51
-
-
Save aradhell/6992eed22aff7923c3ebc63e5f24ebfa to your computer and use it in GitHub Desktop.
certbot renew openvpn access server SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SITE=vpns.xx.net | |
cd /etc/letsencrypt/live/$SITE | |
/usr/local/openvpn_as/scripts/sacli --key "cs.priv_key" --value_file "privkey.pem" ConfigPut | |
/usr/local/openvpn_as/scripts/sacli --key "cs.cert" --value_file "fullchain.pem" ConfigPut | |
cat fullchain.pem privkey.pem > bundle.pem | |
/usr/local/openvpn_as/scripts/sacli --key "cs.ca_bundle" --value_file "bundle.pem" ConfigPut | |
/usr/local/openvpn_as/scripts/sacli start | |
#cron 15 3 * * * /opt/letsencrypt/letsencrypt-auto certonly --standalone -n -d vpns.xx.net --post-hook /usr/local/bin/renewOpenVpnSSL.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment