Created
January 29, 2020 18:19
-
-
Save mfts/e5fb8298f72ae2834632336efe09bb14 to your computer and use it in GitHub Desktop.
Create Letsencrypt wildcard certificate
This file contains 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
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