【问题标题】:How to read server certificate from wss endpoint?如何从 wss 端点读取服务器证书?
【发布时间】:2021-08-27 17:12:11
【问题描述】:

我有 websocket 端点 wss://http-testnet.hecochain.com/ 可以连接, 但我无法在代码中使用它的证书。

虽然为 HTTP URL 提供证书,但您可以只使用浏览器(见下面的 1)和 2), WS没有办法,因为它没有显示在浏览器中

链接

【问题讨论】:

    标签: websocket certificate


    【解决方案1】:

    好吧,因为 wss 实际上是在 htttps 端口 443 上工作的,所以 wss 的证书是一样的:

    openssl s_client -connect http-testnet.hecochain.com:443 -showcerts

    openssl s_client -connect ws-testnet.hecochain.com:443 -showcerts

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多