Skip to content

Instantly share code, notes, and snippets.

@jedireza
Last active July 25, 2016 17:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedireza/b0d165268a9b2091397a to your computer and use it in GitHub Desktop.
Save jedireza/b0d165268a9b2091397a to your computer and use it in GitHub Desktop.

Let’s Encrypt + Heroku

Step 1: Setup certificate

$ sudo letsencrypt certonly --manual -d <domain>

You'll need to deploy a verification file to your current website.

  • http://<website>/.well-known/acme-challenge/<filename-given-by-command>

The contents of the file are provided during the interactive prompts.

Step 2: Install on Heroku

First time

$ sudo heroku certs:add --app <app> /etc/letsencrypt/live/<domain>/cert.pem /etc/letsencrypt/live/<domain>/privkey.pem

Updating

$ sudo heroku certs:update --app <app> /etc/letsencrypt/live/<domain>/cert.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