Heroku SSL error: key doesn't match PEM certificate

前端 未结 2 1881
一生所求
一生所求 2021-01-20 09:55

I am trying to generate a self-signed certificate using the instructions that Heroku suggests here: http://www.akadia.com/services/ssh_test_certificate.html

This cre

2条回答
  •  感动是毒
    2021-01-20 10:38

    Just in case others are getting this error - I was getting the same error setting up a test hostname SSL certificate for my app.

    The answer was that I had not added the domain name the certificate was for first - it does not explicity say this in the Heroku SSL docs. So before adding the cert do:

    heroku domains:add secure.mydomain.com
    

    and then you can add the certificate:

    heroku ssl:add ssl.crt ssl.key
    

提交回复
热议问题