File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
client/src/main/java/xdi2/client/http/ssl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,18 +91,18 @@ public static void enable() {
9191
9292 // get default trust manager
9393
94- TrustManagerFactory tmf1 = TrustManagerFactory .getInstance ("SunX509" , "SunJSSE " );
94+ TrustManagerFactory tmf1 = TrustManagerFactory .getInstance ("X509 " );
9595 tmf1 .init ((KeyStore ) null );
9696
9797 TrustManager tms1 [] = tmf1 .getTrustManagers ();
9898 for (TrustManager tm : tms1 ) if (tm instanceof X509TrustManager ) tms .add ((X509TrustManager ) tm );
9999
100100 // create XDI2 trust manager
101101
102- KeyStore ks2 = KeyStore .getInstance ("JKS" , "SUN" );
102+ KeyStore ks2 = KeyStore .getInstance ("JKS" );
103103 ks2 .load (XDI2X509TrustManager .class .getResourceAsStream ("cacerts.jks" ), "changeit" .toCharArray ());
104104
105- TrustManagerFactory tmf2 = TrustManagerFactory .getInstance ("SunX509" , "SunJSSE " );
105+ TrustManagerFactory tmf2 = TrustManagerFactory .getInstance ("X509 " );
106106 tmf2 .init (ks2 );
107107
108108 TrustManager tms2 [] = tmf2 .getTrustManagers ();
You can’t perform that action at this time.
0 commit comments