简体   繁体   English

如何使用Java中的PSK在MQTT上建立安全通信?

[英]How to establish secure communication over MQTT using PSK in Java?

I want to establish secure communication over mqtt using PSK. 我想使用PSK通过mqtt建立安全的通信。 I explored a lot but everywhere they are using certificates. 我探索了很多,但是到处都在使用证书。

A solution could be to put stunnel in front of your MQTT client. 一种解决方案是将stunnel放在MQTT客户端的前面。

stunnel would act as a reverse proxy for connections. stunnel将充当连接的反向代理。

The config options would be PSKidentity and PSKsecrets . 配置选项将是PSKidentityPSKsecrets

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Eclipse PAHO Java MQTT客户端和Mosquitto代理之间创建PSK连接? - How can I create a PSK connection between the Eclipse PAHO Java MQTT client and the Mosquitto broker? 使用 Java 建立到 MySQL Amazon RDS (SSL/TLS) 的安全连接 - Using Java to establish a secure connection to MySQL Amazon RDS (SSL/TLS) 如何在两个Java服务器之间建立网络通信 - How to establish network communication between two Java servers 如何在Java应用程序和数据库之间建立安全连接? - How to establish secure connection between java application and database? java rmi中的通信安全吗? - Is communication in java rmi secure? 如何修复“驱动程序无法使用安全套接字层 (SSL) 加密与 SQL Server 建立安全连接”错误 - How to fix " The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption" error 如何通过普通的Java套接字实现(SSL / TLS)安全通信 - How to implement (SSL/TLS) secure communication through normal Java Sockets Node.js与Java之间的mqtt通信 - mqtt communication between node.js and java SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption - SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption 如何使用 OAuth2 保护 2 个 Spring Boot 微服务之间的通信? - How to secure communication between 2 Spring Boot microservices using OAuth2?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM