Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question
what's the output for openssl x509 -noout -subject -in server.crt? – kch Apr 24 at 16:46
subject= /C=US/ST=Texas/L=Frisco/O=Internet Widgits Pty Ltd – tadpreston Apr 24 at 20:40
So you have no CN? You have to set the CN to the domain you're issuing the certificate for. – kch Apr 25 at 11:39
Thanks kch! That did the trick. – tadpreston Apr 26 at 2:44

1 Answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.