Skip to content

Commit caa6605

Browse files
Force JDK ssl provider test client.
Signed-off-by: Finn Carroll <[email protected]>
1 parent 13ec303 commit caa6605

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/transport-grpc/src/test/java/org/opensearch/transport/grpc/NettyGrpcClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.grpc.netty.shaded.io.netty.handler.ssl.ApplicationProtocolConfig;
2828
import io.grpc.netty.shaded.io.netty.handler.ssl.ApplicationProtocolNames;
2929
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder;
30+
import io.grpc.netty.shaded.io.netty.handler.ssl.SslProvider;
3031
import io.grpc.netty.shaded.io.netty.handler.ssl.util.InsecureTrustManagerFactory;
3132
import io.grpc.reflection.v1alpha.ServerReflectionGrpc;
3233
import io.grpc.reflection.v1alpha.ServerReflectionRequest;
@@ -129,6 +130,7 @@ public NettyGrpcClient build() throws SSLException {
129130

130131
if (clientAuth) {
131132
SslContextBuilder builder = SslContextBuilder.forClient();
133+
builder.sslProvider(SslProvider.JDK);
132134
builder.applicationProtocolConfig(CLIENT_ALPN);
133135
builder.keyManager(getTestKeyManagerFactory(CLIENT_KEYSTORE));
134136
builder.trustManager(InsecureTrustManagerFactory.INSTANCE);

0 commit comments

Comments
 (0)