简体   繁体   English

Heroku SSL - 没有给出的证书是域名证书

[英]Heroku SSL - No certificate given is a domain name certificate

I am already 3 hours fighting with setting SSL certificate for a Heroku app. 我已经花了3个小时与Heroku应用程序设置SSL证书。 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 . 我在DNSimple购买了SSL证书。 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 . 在我的情况下,我从我的SSL提供商下载的ZIP文件包含2个.crt文件,我在运行certs:update时选错了。 Re-running with the other .crt file solved the problem 重新运行其他.crt文件解决了这个问题

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. 好像您的证书和您的捆绑包没有正确解析,即信任链被破坏(并非所有证书都存在于域的捆绑包中 - >中间CA - >根CA)或者您的证书对于Heroku所在的域无效期待。

Make sure the fully qualified domain name in your cert matches the domain you are using. 确保证书中的完全限定域名与您使用的域匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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