6
votes

I am trying to add a self-signed certificate to one of my apps on Heroku. I have followed the guides from the Dev Center.

https://devcenter.heroku.com/articles/ssl and https://devcenter.heroku.com/articles/ssl-certificate-self

After I have generated the self-signed cert I try to add the cert by heroku certs:add server.crt server.key

And get the error message: Resolving trust chain... failed ! No certificate given is a domain name certificate.

I am not sure what that means or how to fix the problem.

1
what's the output for openssl x509 -noout -subject -in server.crt? - kch
subject= /C=US/ST=Texas/L=Frisco/O=Internet Widgits Pty Ltd - tadpreston
So you have no CN? You have to set the CN to the domain you're issuing the certificate for. - kch
Thanks kch! That did the trick. - tadpreston

1 Answers

6
votes

You have to set the CN to the domain you're issuing the certificate for.