Netty 3.x 不能使用 openssl?

Netty 3.x can`t use openssl?

我在netty 3.5中没有找到关于openssl的class。3.Final,我将版本更新到3.10.6,netty 3的最后一个版本,在这个jar中我找到了openssl class,但控制台给我错误日志,客户端不支持 openssl。

我按照代码,找到了这个

    public static SslContext newClientContext(
        SslProvider provider, SslBufferPool bufPool,
        File certChainFile, TrustManagerFactory trustManagerFactory,
        Iterable<String> ciphers, Iterable<String> nextProtocols,
        long sessionCacheSize, long sessionTimeout) throws SSLException {

    if (provider != null && provider != SslProvider.JDK) {
        throw new SSLException("client context unsupported for: " + provider);
    }

所以我必须使用netty4来支持openssl?

是的,你应该使用 4.x。另请注意,3.x 已停产很长时间。