Skip to content

Instantly share code, notes, and snippets.

@sabbour
Created October 21, 2018 07:02
Show Gist options
  • Save sabbour/5412fed1d90014b212789bbd8382fead to your computer and use it in GitHub Desktop.
Save sabbour/5412fed1d90014b212789bbd8382fead to your computer and use it in GitHub Desktop.
#!/bin/bash
# update-openvpn-certs.sh
/usr/local/openvpn_as/scripts/sacli --key "cs.priv_key" --value_file "/etc/letsencrypt/live/<YOUR DOMAIN NAME>/privkey.pem" ConfigPut
/usr/local/openvpn_as/scripts/sacli --key "cs.cert" --value_file "/etc/letsencrypt/live/<YOUR DOMAIN NAME>/fullchain.pem" ConfigPut
/usr/local/openvpn_as/scripts/sacli --key "cs.ca_bundle" --value_file "/etc/letsencrypt/live/<YOUR DOMAIN NAME>/chain.pem" ConfigPut
/usr/local/openvpn_as/scripts/sacli start
@ryanbeaton
Copy link

Thanks for that, you just helped me out :)

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