Skip to content

Instantly share code, notes, and snippets.

@ryancatalani
Created March 14, 2017 16:54
Show Gist options
  • Save ryancatalani/e49528663e60db514001497b0c1d284d to your computer and use it in GitHub Desktop.
Save ryancatalani/e49528663e60db514001497b0c1d284d to your computer and use it in GitHub Desktop.
Renewing and updating Let's Encrypt certificates on Heroku
0. Replace DOMAIN with actual domain.
1. Renew Let's Encrypt certificate.
sudo certbot certonly --debug --force-renew -a manual -d DOMAIN
2. Update Heroku certificate.
sudo heroku certs:update /etc/letsencrypt/live/DOMAIN/fullchain.pem /etc/letsencrypt/live/DOMAIN/privkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment