Is java client of PAHO proxy aware and enables sending of MQTT messages across enterprise proxy to brokers hosted in the internet?

六月ゝ 毕业季﹏ 提交于 2020-01-06 06:06:33

问题


Organization provides http proxy and https proxy.

If not within enterprise network successfully establishing a secure connection (ssl://brokerhost:brokerport)
1.Passing relevant keystore and truststore
2.Setting default instance of SSLSocketFactory in MqttConnectOptions.


回答1:


No, for native MQTT there is no way to use a HTTP/HTTPS proxy.

You can not use a HTTP proxy to transport an arbitrary TCP based protocol. You need something like SOCKS (ssh can be used to to setup socks proxies or to do port forwarding to remote [not the ssh host] location)



来源:https://stackoverflow.com/questions/44253083/is-java-client-of-paho-proxy-aware-and-enables-sending-of-mqtt-messages-across-e

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!