阅读背景:

使用MQTT.js连接到AWS

来源:互联网 

I want to design a web-page in which I can connect to AWS server. In python-Paho-mqtt, I can use the tls_set option to provide the security certificates and other stuff. How do I provide the same using MQTT.js? If I can't how do I run python-PAHO-MQTT from HTML.

我想设计一个可以连接到AWS服务器的网页。在python-Paho-mqtt中,我可以使用tls_set选项来提供安全证书和其他内容。如何使用MQTT.js提供相同的功能?如果我不能如何从HTML运行python-PAHO-MQTT。

Thanks in advance.

提前致谢。

1 个解决方案

#1


0  

Certificate management is all handled by the browser for Websocket connections, not the javascript client.

证书管理全部由浏览器处理Websocket连接,而不是javascript客户端。

You would need to load your certificate into which ever browser keystore is being used and it will pick (or ask if multiple matches) the right one to send to the server when establishing the connection the same way it does for mutually secured https

您需要加载正在使用浏览器密钥库的证书,并且它将在建立连接时选择(或询问是否多个匹配)正确的证书,以与相互保护的https相同的方式发送到服务器


分享到: