【发布时间】:2016-05-11 01:41:47
【问题描述】:
我使用 Strophe 库连接到 OpenFire XMPP 服务器。我使用 http-bind url 作为 https://localhost:7443/http-bind/ 连接到 openfire 服务器。
Openfire 提供了默认的自签名证书。
如何忽略strophe连接中的自签名证书?
【问题讨论】:
我使用 Strophe 库连接到 OpenFire XMPP 服务器。我使用 http-bind url 作为 https://localhost:7443/http-bind/ 连接到 openfire 服务器。
Openfire 提供了默认的自签名证书。
如何忽略strophe连接中的自签名证书?
【问题讨论】:
在浏览器中,JavaScript 不能覆盖信任证书的决定。只有用户可以手动执行此操作。为此,请直接访问 http-bind URL 并添加异常。
【讨论】: