Skip to content

Instantly share code, notes, and snippets.

@aradhell
Last active June 9, 2020 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aradhell/f34c1c911f0caa2d0b906de538046e85 to your computer and use it in GitHub Desktop.
Save aradhell/f34c1c911f0caa2d0b906de538046e85 to your computer and use it in GitHub Desktop.
#!/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
@aradhell
Copy link
Author

aradhell commented Jun 9, 2020

15 3 * * * /opt/letsencrypt/letsencrypt-auto certonly --standalone -n -d xxxx.com --post-hook openvpn-update-certbot-certs.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment