File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
marklogic-client-api/src/main/java/com/marklogic/client Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3030import javax .net .ssl .KeyManagerFactory ;
3131import javax .net .ssl .SSLContext ;
3232import javax .net .ssl .SSLException ;
33+ import javax .net .ssl .TrustManager ;
3334import javax .net .ssl .X509TrustManager ;
3435
3536import okhttp3 .OkHttpClient ;
@@ -628,7 +629,8 @@ private SSLContext createSSLContext()
628629 + "Service provider Implementaion (SPI) is invalid. CertificateAuthContext "
629630 + "requires SunX509 algorithm and PKCS12 Key store SPI" , e );
630631 }
631- sslContext .init (keyMgr , null , null );
632+ TrustManager [] trustManagers = trustManager == null ? null : new TrustManager [] {trustManager };
633+ sslContext .init (keyMgr , trustManagers , null );
632634 return sslContext ;
633635 }
634636
You can’t perform that action at this time.
0 commit comments