Created
June 22, 2018 00:20
-
-
Save rdkls/29daaa773ad6a508b4626b1c0c3d20b4 to your computer and use it in GitHub Desktop.
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
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