Heroku: "Your connection is not private" error message is displayed

When I try to access the URL that I registered as CNAME , the error message Your connection is not private (using Chrome) is displayed.

I developed the Rails app, and this is the first time you use Heroku.

Although the error does not appear when I use the original url, for example https://floating-fortress-99999.herokuapp.com/ , the error appears when I use www.my_app.com , which I get.

All browser error messages are as follows:

 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. 

I can display www.my_app.com when I click the Proceed to www.my_app.com (unsafe) link in the browser.

Can I display a "Privacy Error"?

It would be helpful if you could give me how to avoid this error.

+5
source share
1 answer

The problem is that you are most likely using force_ssl = true in your configuration, however you do not have a valid and authorized SSL certificate installed on your server.

To fix the error, you have two options:

  • Disable SSL via force_ssl = false (not recommended)
  • Obtain the SSL certificate issued by the certification authority and install it on your server (for example, nginx or Apache).
+2
source

All Articles