private static SslContext newNettyServerContext(
            io.netty.handler.ssl.SslProvider sslProvider, boolean useAlpn) {
        try {
            PrivateKeyEntry server = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
            SslContextBuilder ctx =
                    SslContextBuilder
                            .forServer(server.getPrivateKey(),
                                    (X509Certificate[]) server.getCertificateChain())
                            .sslProvider(sslProvider);
            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