Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有办法配置 Moquette-Broker 以使用 BouncyCastle-Library 设置 TLS-Connection?由于配置选项不同,我需要使用 BouncyCastle 实现 TLS-Connection-Setup。
默认情况下,moquette 支持 keystore 和 truststore 配置。如果你真的需要使用 BouncyCastle,我认为你应该覆盖默认实现。这个NettyAcceptor.java类会很有帮助,因为它包含管道定义。我认为sslContext你自己创建的只需要放在管道中的第一个位置(比如pipeline.addFirst(mySslContext).
NettyAcceptor.java
sslContext
pipeline.addFirst(mySslContext)
https://github.com/andsel/moquette/blob/2fb475ae95989e7abc418dffbdd9104c818302bb/broker/src/main/java/io/moquette/server/netty/NettyAcceptor.java