I would like to know if there is a way to configure the Moquette-Broker to setup the TLS-Connection using the BouncyCastle-Library? I need to implement the TLS-Connection-Setup with BouncyCastle because of the different configuration options.
答案 0 :(得分:0)
默认情况下,moquette支持密钥库和信任库配置。如果你真的需要使用BouncyCastle,我认为你应该覆盖默认实现。 Thi NettyAcceptor.java
类可以提供帮助,因为它包含管道定义。我认为自己创建的sslContext
只需要放在管道中的第一个位置(类似于pipeline.addFirst(mySslContext)
。