Connect cloudflare to heroku with Full SSL

孤者浪人 提交于 2019-12-12 11:13:35

问题


I have a Heroku app with a free account. I also have a free account in Cloudflare.

I am trying to connect them with a Full SSL connection. In cloudflare, I see the following state:

However, I can't access my website with a secure connection. I am getting an error 525:

I think the problem is with the settings in Heroku but I can't find much information online...

Any suggestions?


回答1:


Use the app URL (appname.herokuapp.com) as CNAME value instead of the domain generated by Heroku.

Resource: https://help.heroku.com/GVS2BTB5/why-am-i-getting-error-525-ssl-handshake-failed-with-cloudflare-when-using-a-herokudns-com-endpoint




回答2:


Have you tried connecting directly to the host with SSL?

Perhaps try running ssl labs https://www.ssllabs.com/ssltest/analyze.html?d=YOUR-DOMAIN-HERE&latest to view which ciphers are supported etc.

I wonder if the cloudflare proxy to the host supports server name indication (SNI) since I presume that on the host end (Heroku) you don't have a dedicated IP.




回答3:


In the Crypto settings on Cloudflare under SSL, change your value from Full SSL to Flexible



来源:https://stackoverflow.com/questions/50309928/connect-cloudflare-to-heroku-with-full-ssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!