0
我們在WPEngine上啓用了SSL的網站,因此每個網頁都通過https服務。SSL證書WPEngine Heroku Rails
我們最近切換到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
當我都爲我的自定義域或herokuapp域做一個curl
檢查,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