gpt4 book ai didi

Heroku:SSL 端点 - subjectAltName 与 www.mydomain.com 不匹配

转载 作者:行者123 更新时间:2023-12-02 07:25:32 24 4
gpt4 key购买 nike

我刚刚设置了我的第一个需要 ssl 的应用程序。

这是 RoR 应用程序,托管在 Heroku 上。

我已将 SSL Endpoint 插件添加到我的应用程序中。我从 DNSimple 购买了 SSL 证书。

然后按照这些说明进行操作 - https://devcenter.heroku.com/articles/ssl-certificate连接必要的文件。然后将它们上传到我的服务器。

到目前为止一切顺利。

按照这些说明操作 - https://devcenter.heroku.com/articles/ssl-endpoint#testing-your-certificate测试我的证书似乎没问题。

我已使用指向 Heroku 生成的端点的 CNAME 更新了我的 DNS 记录。

heroku certs

给出:

Endpoint                      Common Name(s)                          Expires               Trusted
---------------------------- -------------------------------------- -------------------- -------
<generated_id>.herokussl.com www.mydomain.com, mydomain.com 2014-04-29 23:25 UTC True

但是当我尝试时:

curl -v https://www.mydomain.com

我得到:

* About to connect() to www.mydomain.com port 443 (#0)
* Trying 107.20.162.205... connected
* Connected to www.mydomain.com (107.20.162.205) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES256-SHA
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Heroku, Inc.; CN=*.herokuapp.com
* start date: 2011-04-11 00:00:00 GMT
* expire date: 2014-04-15 12:00:00 GMT
* subjectAltName does not match www.mydomain.com
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
* SSL peer certificate or SSH remote key was not OK
curl: (51) SSL peer certificate or SSH remote key was not OK

感谢任何帮助。

最佳答案

设置/配置没有任何问题 - 延迟了大约 24 小时,然后一切都按预期进行。

关于Heroku:SSL 端点 - subjectAltName 与 www.mydomain.com 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16263253/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com