Skip to content

Instantly share code, notes, and snippets.

@haukurk
Created February 14, 2016 20:58
Show Gist options
  • Save haukurk/8f51868539140fb85a49 to your computer and use it in GitHub Desktop.
Save haukurk/8f51868539140fb85a49 to your computer and use it in GitHub Desktop.
Simple renewal script for letsencrypt standalone server
#!/bin/sh
service nginx stop # or whatever your webserver is
if ! /root/letsencrypt/letsencrypt-auto certonly --standalone --email [email protected] -d farcore.farapp.io -d farcore-test.farapp.io > /var/log/letsencrypt/renew.log 2>&1 ; then
echo Automated renewal failed:
cat /var/log/letsencrypt/renew.log
exit 1
fi
service nginx start # or whatever your webserver is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment