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

时间:2013-04-28 13:16:12

标签: heroku ssl-certificate

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

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

我已将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

任何帮助表示感谢。

1 个答案:

答案 0 :(得分:5)

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

相关问题