Skip to content

Instantly share code, notes, and snippets.

@mfts
Created January 29, 2020 18:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfts/e5fb8298f72ae2834632336efe09bb14 to your computer and use it in GitHub Desktop.
Save mfts/e5fb8298f72ae2834632336efe09bb14 to your computer and use it in GitHub Desktop.
Create Letsencrypt wildcard certificate
brew install certbot
# change <my.domain> to preferred domain
certbot certonly --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory --manual-public-ip-logging-ok -d '*.<my.domain>' -d <my.domain>
# add certificates to heroku
heroku certs:add -a eduqai-prod /etc/letsencrypt/live/<my.domain>/fullchain.pem /etc/letsencrypt/live/<my.domain>/privkey.pem
# may need to run with sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment