Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding self-signed certificate to Heroku app

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.

like image 976
tadpreston Avatar asked Apr 24 '13 14:04

tadpreston


People also ask

How do I add a certificate to Heroku?

Manually Upload CertificatesUse the certs:add Heroku CLI command to add a certificate and private key. It prompts for the custom domain with which to associate the certificate-key pair. $ heroku certs:add server. crt server.

How can I add SSL certificate to Heroku for free?

Configuring SSL In Heroku, go back to the Settings tab of your application and scroll down to Domain and certificates. You should now see a white button Configure SSL. Click on it. Leave the Automatically option ticked and click on Continue.

Does Heroku provide SSL certificates?

Heroku SSL is a free feature that allows for the managing of SSL/TLS encryption for custom domains and relies on the Server Name Indication (SNI). Please note that Heroku SSL is currently available under Heroku paid plans only.

Do I need SSL for Heroku?

It is worth saying that you need to purchase the SSL Endpoint for your application at Heroku, which costs $20/month. Also, you can have a free certificate installed using the Heroku SSL option. For this to be done, please use the following command: heroku certs:add example. crt example.


1 Answers

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

like image 144
kch Avatar answered Sep 27 '22 22:09

kch