带有Heroku,Node,Express,SSL的ERR_SSL_PROTOCOL_ERROR [英] ERR_SSL_PROTOCOL_ERROR with Heroku, Node, Express, SSL

查看:85
本文介绍了带有Heroku,Node,Express,SSL的ERR_SSL_PROTOCOL_ERROR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近为Heroku托管的网站wildcodemonkey.com启用了SSL,但是当我在Chrome浏览器中访问SSL时,看到错误"ERR_SSL_PROTOCOL_ERROR".

I recently enabled SSL for my Heroku-hosted website, wildcodemonkey.com, but when I visit it in Chrome I see the error "ERR_SSL_PROTOCOL_ERROR".

我的研究表明,SSL连接在Heroku的路由器处终止,然后将请求通过HTTP传递到我的express/node站点.因此,我没有在服务器中设置"https",并且一直期望使用标准的HTTP连接.

My research indicated that the SSL connection terminates at Heroku's router, which then passes the request along via HTTP to my express/node site. Consequently, I did not set up 'https' in my server and have been expecting standard HTTP connections.

我的SSL配置是将我的CSR,密钥和证书传递给Heroku的.我正在使用Heroku附带的SSL选项,而不是第三方资源/附加组件.在应用程序设置中启用SSL后,我更改了DNS以反映新的终结点(wildcodemonkey.com.herokudns.com而不是wildcodemonkey.com.herokuapp.com),这是在Heroku上配置SSL时被告知要使用的终结点,在设置ssl后直接从设置页面复制并粘贴.

My SSL configuration is such that my CSR, key and cert were passed along to Heroku. I'm using the SSL option baked into Heroku, not a third-party resource/addon. After enabling SSL in my app's settings I changed my DNS to reflect the new endpoint (wildcodemonkey.com.herokudns.com instead of wildcodemonkey.com.herokuapp.com), this is the endpoint I was told to use when I configured SSL on Heroku, directly copied and pasted from the settings page after setting up ssl.

当我访问域时,我确实看到摩根记录GET请求,因此它看起来好像一切都在端到端进行,所以我不确定问题出在哪里.

I do see morgan logging GET requests when I hit the domain, so it does look like everything is making it end to end, so I'm not sure where the issue is occurring.

任何帮助将不胜感激.提前谢谢.

Any assistance would be greatly appreciated. Thanks ahead of time.

推荐答案

根据

According to the SSLLabs report the certificate chain of this site is incomplete. While desktop browsers often but not always will work around this problem mobile browsers and other applications will usually not. Check the documentation provided by your CA which chain certificates need to be configured.

这篇关于带有Heroku,Node,Express,SSL的ERR_SSL_PROTOCOL_ERROR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆