Websocket从HTTPS网站到不同端口,自签名证书

发布于 2025-01-28 14:44:21 字数 440 浏览 4 评论 0原文

尝试通过Websocket连接到服务器时,我正面临问题。 网站托管在默认端口(80、443,可配置 - 这是针对多个客户的自我主持的Intranet应用程序)。 我们使用自签名的证书,需要使用自签名证书运行(如果可能的话) 在没有SSL HTTP网站(端口80),WS websocket(自定义端口)的情况下,所有操作都可以很好地运行

,当打开SSL时,请访问https(port 443)和Websocket在WSS://(同一端口8090)上运行。连接未打开。 我正在使用RXJS WebSocketsubject在浏览器中创建连接。

我还确保SSL证书绑定到两个端口(443,8090) 设置了URL ACL(NetSH HTTP添加SSLCERT IPPORT ....)

是否知道问题是什么? 是因为未接受WebSocket连接的自签名/不安全证书吗? SSL网站和WebSocket之间的不同端口是否存在问题?

I am facing issues when trying to connect from a browser via WebSocket to a server.
Website is hosted on a default port (80, 443, configurable - this is s selfhosted intranet application for multiple customers).
We use self signed certificates and it needs to be running with self signed cert (if possible)
All works well on without SSL HTTP website (port 80), WS websocket (custom port let's say 8090)

When SSL is turned on, hence web running on HTTPS (port 443) and WebSocket on WSS:// (same port 8090). The connection is not opened.
I am using rxjs WebSocketSubject to create the connection in the browser.

I am also making sure that the SSL cert is bound to both ports (443, 8090)
URL ACL is set (netsh http add sslcert ipport....)

Any idea what the problem is?
Is it because self-signed/insecure certificates are not accepted for websocket connection?
Is the problem with SSL the different port between the website and webSocket?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文