File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
plugins/transport-grpc/src/test/java/org/opensearch/transport/grpc Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 27
27
import io .grpc .netty .shaded .io .netty .handler .ssl .ApplicationProtocolConfig ;
28
28
import io .grpc .netty .shaded .io .netty .handler .ssl .ApplicationProtocolNames ;
29
29
import io .grpc .netty .shaded .io .netty .handler .ssl .SslContextBuilder ;
30
+ import io .grpc .netty .shaded .io .netty .handler .ssl .SslProvider ;
30
31
import io .grpc .netty .shaded .io .netty .handler .ssl .util .InsecureTrustManagerFactory ;
31
32
import io .grpc .reflection .v1alpha .ServerReflectionGrpc ;
32
33
import io .grpc .reflection .v1alpha .ServerReflectionRequest ;
@@ -129,6 +130,7 @@ public NettyGrpcClient build() throws SSLException {
129
130
130
131
if (clientAuth ) {
131
132
SslContextBuilder builder = SslContextBuilder .forClient ();
133
+ builder .sslProvider (SslProvider .JDK );
132
134
builder .applicationProtocolConfig (CLIENT_ALPN );
133
135
builder .keyManager (getTestKeyManagerFactory (CLIENT_KEYSTORE ));
134
136
builder .trustManager (InsecureTrustManagerFactory .INSTANCE );
You can’t perform that action at this time.
0 commit comments