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
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