File tree Expand file tree Collapse file tree
ayza/src/test/java/nl/altindag/ssl/trustmanager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ void executeHttpsRequestWithExistingSslSocketFactoryContainingASwappedUnsafeTrus
9494 .withNeedClientAuthentication ()
9595 .build ();
9696
97- Server server = Server .createDefault (sslFactoryForServer , 7984 );
97+ Server server = Server .createDefault (sslFactoryForServer , 7985 );
9898
9999 KeyStore trustStoreWithClientTwo = KeyStoreUtils .loadKeyStore ("keystore/client-server/client-two/truststore.jks" , "secret" .toCharArray ());
100100 X509ExtendedTrustManager trustManagerWithClientTwo = TrustManagerUtils .createTrustManager (trustStoreWithClientTwo );
101101 TrustManagerUtils .swapTrustManager (trustManager , trustManagerWithClientTwo );
102102 SSLSessionUtils .invalidateCaches (sslSessionContext );
103103
104- HttpsURLConnection connection = (HttpsURLConnection ) new URL ("https://localhost:7984 /api/hello" ).openConnection ();
104+ HttpsURLConnection connection = (HttpsURLConnection ) new URL ("https://localhost:7985 /api/hello" ).openConnection ();
105105 connection .setSSLSocketFactory (sslSocketFactory );
106106 connection .setRequestMethod ("GET" );
107107
You can’t perform that action at this time.
0 commit comments