7
我刚刚设置了我的第一个需要SSL的应用程序。Heroku:SSL端点 - subjectAltName不匹配www.mydomain.com
这是RoR应用程序,托管在Heroku上。
我已将SSL端点附件添加到我的应用程序。 我从DNSimple购买了SSL证书。
然后按照这些说明 - https://devcenter.heroku.com/articles/ssl-certificate 连接必要的文件。然后将它们上传到我的服务器。
到目前为止这么好。
按照这些说明 - https://devcenter.heroku.com/articles/ssl-endpoint#testing-your-certificate 测试我的certificat似乎很好。
我已经使用指向我的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
任何帮助表示赞赏。
也许只是一个DNS传播延迟?什么是实际使用的域名? – kch 2013-04-28 20:30:43
@kch谢谢,我猜这就是现在所有的工作。 – veritas1 2013-04-29 15:53:04