【发布时间】:2015-09-11 14:19:33
【问题描述】:
我们在 WPEngine 上有一个激活 SSL 的网站,因此每个页面都通过 https 提供。
我们最近在 Heroku 上切换到 Ruby on Rails。现在我们在使用 https 时出现了一些错误:
Your connection is not private
Attackers might be trying to steal your information from myapp.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID
当我执行curl 检查我的自定义域或herokuapp 域时,SSL 得到验证。
curl -kvI https://myapp.herokuapp.com
# SSL certificate verify ok.
curl -kvI https://myapp.com
# SSL certificate verify ok.
Chrome 中的错误是:
This server could not prove that it is myapp.com; its security certificate is from *.herokuapp.com. This may be caused by a misconfiguration or an attacker intercepting your connection.
在我的 production.rb 我有:
config.force_ssl = true
【问题讨论】:
标签: ruby-on-rails ssl heroku https