Last active
June 9, 2020 08:30
-
-
Save aradhell/f34c1c911f0caa2d0b906de538046e85 to your computer and use it in GitHub Desktop.
This file contains 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=xxxx | |
service openvpnas stop | |
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 | |
/usr/local/openvpn_as/scripts/sacli --key "cs.ca_bundle" --value_file "chain.pem" ConfigPut | |
/usr/local/openvpn_as/scripts/sacli start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
15 3 * * * /opt/letsencrypt/letsencrypt-auto certonly --standalone -n -d xxxx.com --post-hook openvpn-update-certbot-certs.sh