Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku SSL - No certificate given is a domain name certificate

Tags:

ssl

heroku

dns

I am already 3 hours fighting with setting SSL certificate for a Heroku app. I am following this tutorial, but when I run

heroku certs:add server.crt bundle.pem server.key --app my-app-name

I always get this error:

Resolving trust chain... failed
 !    No certificate given is a domain name certificate.

I have bought the SSL certificate at DNSimple. What's is still wrong, why am I missing. It makes me despair, even Google didn't help...

All help will be appreciated.

like image 303
user984621 Avatar asked Jul 21 '13 16:07

user984621


People also ask

Does Heroku provide SSL certificates?

Heroku SSL is a combination of features that enables SSL for all Heroku apps. Heroku SSL uses Server Name Indication (SNI), an extension of the widely supported TLS protocol.

Does Heroku provide free SSL certificate?

Heroku now supports Let's Encrypt, a free way of generating SSL certificates. They call it Automated Certificate Management (or ACM in short). Although the certificate is free, you still need to upgrade your application to at leasta Hobby plan to use it.

How do I get SSL on Heroku?

To install the certificate in your Heroku Dashboard, open the certificate, select the necessary application from the list, and select Settings. Then, scroll down the page and click on Configure SSL in Domains and certificates section.

Does Heroku automatically use HTTPS?

The Heroku router doesn't have this feature. Show activity on this post. As of July 2019, Heroku supports HTTPS redirects to OTHER DOMAINS OR SUBDOMAINS (a redirect cannot point to itself). All you have to do is configure a URL record for your domain as outlined in this post.


1 Answers

In my case the ZIP file I downloaded from my SSL provider contained 2 .crt files and I picked the wrong one when running the certs:update. Re-running with the other .crt file solved the problem

like image 97
Daniel Flippance Avatar answered Sep 29 '22 16:09

Daniel Flippance