Skip to content

Instantly share code, notes, and snippets.

@rdkls
Created June 22, 2018 00:20
Show Gist options
  • Save rdkls/29daaa773ad6a508b4626b1c0c3d20b4 to your computer and use it in GitHub Desktop.
Save rdkls/29daaa773ad6a508b4626b1c0c3d20b4 to your computer and use it in GitHub Desktop.
MY_DNS_HOSTNAME='vpn.foo.bar'
pritunl set app.acme_domain $MY_DNS_HOSTNAME
pritunl set app.acme_key "`openssl genrsa 4096`"
pritunl set app.acme_timestamp `python -c 'import time;print time.time()'`
pritunl set app.acme_renew 0
if [[ "`pgrep pritunl-web`" ]] ; then
echo 'restarting pritunl'
service pritunl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment