private static SslContext newNettyClientContext(
            io.netty.handler.ssl.SslProvider sslProvider, boolean useAlpn) {
        try {
            TestKeyStore server = TestKeyStore.getServer();
            SslContextBuilder ctx =
                    SslContextBuilder.forClient()
                            .sslProvider(sslProvider)
                            .trustManager((X509Certificate[]) server.getPrivateKey("RSA", "RSA")
                                                  .getCertificateChain());
            if (useAlpn) {
                ctx.applicationProtocolConfig(OpenJdkEngineFactoryConfig.NETTY_ALPN_CONFIG);
            }
            return ctx.build();
        } catch (SSLException e) {
            throw new RuntimeException(e);
        }
    }
Enumeration of various types of engines for use with engine-based benchmarks.
benchmark-jmh/src/jmh/java/org/conscrypt/OpenJdkEngineFactory.java