问题
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