2016-05-07 128 views
5

当我尝试访问我注册为CNAME的网址时,显示隐私错误Your connection is not private(使用Chrome)。Heroku:显示隐私错误“您的连接不是私人的”

我开发了Rails应用程序,这是第一次使用Heroku。

尽管在使用原始网址(例如https://floating-fortress-99999.herokuapp.com/)时未显示错误,但是在使用我获得的www.my_app.com时显示错误。

浏览器上的所有错误信息如下:

Your connection is not private 

Attackers might be trying to steal your information from www.my_app.com (for example, passwords, messages, or credit cards). 
NET::ERR_CERT_COMMON_NAME_INVALID 

This server could not prove that it is www.my_app.com; its security certificate is from *.herokuapp.com. This may be caused by a misconfiguration or an attacker intercepting your connection. 

我可以显示www.my_app.com当我点击浏览器上的链接Proceed to www.my_app.com (unsafe)

是否可以避免显示'隐私错误'?

如果你能给我如何避免这个错误,将不胜感激。

回答

2

问题是,您很可能在您的配置中使用了force_ssl = true,但是您的服务器上没有安装有效且授权的SSL证书。

要修正这个错误,你有两种可能性:

  • 禁用SSL通过force_ssl = false(不推荐)
  • 购买由认证机构颁发的SSL证书,并在服务器上(安装如nginx的或Apache)
+0

感谢您的评论,@Anthony E.我明白为什么会显示此错误。 顺便说一下,我发现CloudFlare给了我们免费的SSL。我会尝试。 – SamuraiBlue

+0

@SamuraiBlue嗨我面临与我的网站上同样的问题,虽然我使用CloudFlare我面临着同样的问题,我的SSL证书是灵活的。你是如何摆脱这个问题的? – gobo

相关问题