首页 文章

Cloudflare Rails SSL错误

提问于
浏览
5

我在ubuntu服务器上的nginx上运行了一个完全正常工作的Rails应用程序 . 我在我的应用上添加了Cloudflare . 然后,我在需要登录的页面上收到此错误:

SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error code: ERR_SSL_PROTOCOL_ERROR

我的网站可以从登录页面和其他非交互式静态页面访问 .

我还注意到,当它重定向到错误页面时,DNS成为URL上的IP地址,然后是相应的目录 .

我不知道接下来要去哪儿 .

此外,当我查看有关URL的网站信息时,它说

The identity of this website has not been verified.

1 回答

  • 0

    这是因为您网站的Nginx配置没有启用任何密码套件,CloudFlare可以使用这些密码套件连接到您的网站 . 这也可能意味着您的SSL配置不安全 .

    您应该使您的SSL配置与CloudFlare一致,幸运的是CloudFlare发布了他们在Nginx配置中使用的密码 . 只需将其添加到您的Nginx SSL配置中,删除具有相同名称的属性:

    ssl_protocols               TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers                 EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
    ssl_prefer_server_ciphers   on;
    

相关问题