简体   繁体   中英

Heroku SSL - No certificate given is a domain name certificate

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.

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

Seems like your certs and your bundle are not resolving properly, ie either the trust chain is broken (not all certs exist in bundle for domain -> intermediate CA -> root CA) or alternatively your cert is not valid for the domain that Heroku is expecting.

Make sure the fully qualified domain name in your cert matches the domain you are using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM