ver*_*as1 7 heroku ssl-certificate
我刚刚设置了我的第一个需要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
Run Code Online (Sandbox Code Playgroud)
得到:
Endpoint Common Name(s) Expires Trusted
---------------------------- -------------------------------------- -------------------- -------
<generated_id>.herokussl.com www.mydomain.com, mydomain.com 2014-04-29 23:25 UTC True
Run Code Online (Sandbox Code Playgroud)
但是当我尝试:
curl -v https://www.mydomain.com
Run Code Online (Sandbox Code Playgroud)
我明白了:
* 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
Run Code Online (Sandbox Code Playgroud)
任何帮助赞赏.
| 归档时间: |
|
| 查看次数: |
2062 次 |
| 最近记录: |