This is a working draft.
Go to letsencrypt and donwload certbot package
In the terminal enter
sudo certbot certonly --manual --preferred-challenges=dns
follow the instructions to create a TXT record on your domain host, to prove your ownership of your domain.
after following the prompting instructions, it should show a successful message and the paths to the cert and key files.
copy these files into the app root folder. and change the extension
sudo cat /path/to/fullchain.pem > fullchain.cert
sudo cat /path/to/privkey.pem > privkey.key
while you are at the project root upload the cert
- heroku certs:add filename.crt filename.key