@@ -58,9 +58,9 @@ public void testRSAServer()
5858 throws Exception
5959 {
6060 // TLS_RSA is disabled in Java 25.
61- if (System .getProperty ("java.version" ).startsWith ("25" ) || System . getProperty ( "java.version" ). startsWith ( "1.8" ) )
61+ if (System .getProperty ("java.version" ).startsWith ("25" ))
6262 {
63- return ;
63+ return ;
6464 }
6565 KeyStore ks = getRsaKeyStore (true );
6666
@@ -77,7 +77,7 @@ public void testRSAServer()
7777
7878 trustManagerFactory .init (trustStore );
7979
80- SSLContext context = SSLContext .getInstance ("TLSv1.3 " , ProviderUtils .PROVIDER_NAME_BCJSSE );
80+ SSLContext context = SSLContext .getInstance ("TLSv1.2 " , ProviderUtils .PROVIDER_NAME_BCJSSE );
8181
8282 context .init (null , trustManagerFactory .getTrustManagers (), null );
8383
@@ -86,7 +86,7 @@ public void testRSAServer()
8686 SSLSocket c = (SSLSocket )f .createSocket ("localhost" , 8886 );
8787 c .setUseClientMode (true );
8888
89- SSLUtils .restrictKeyExchange (c , "SM2_MLKEM_768 " );
89+ SSLUtils .restrictKeyExchange (c , "RSA " );
9090
9191 c .getOutputStream ().write ('!' );
9292
@@ -100,7 +100,7 @@ public void testRSAServerTrustEE()
100100 // TLS_RSA is disabled in Java 25.
101101 if (System .getProperty ("java.version" ).startsWith ("25" ))
102102 {
103- return ;
103+ return ;
104104 }
105105 KeyStore ks = getRsaKeyStore (true );
106106
@@ -113,7 +113,7 @@ public void testRSAServerTrustEE()
113113 /*
114114 * For this variation we add the server's certificate to the client's trust store directly,
115115 * instead of the root (TA).
116- *
116+ *
117117 * NOTE: For TLS 1.3 with certificate_authorities in ClientHello, or earlier versions with
118118 * trusted_ca_keys in ClientHello, this test only works when a) there are no actual CA
119119 * certificates in the client trust store, AND/OR b) the server is willing to (eventually)
@@ -150,7 +150,7 @@ public void testRSAServerWithClientAuth()
150150 // TLS_RSA is disabled in Java 25.
151151 if (System .getProperty ("java.version" ).startsWith ("25" ))
152152 {
153- return ;
153+ return ;
154154 }
155155 KeyStore clientKS = getRsaKeyStore (false );
156156 KeyStore serverKS = getRsaKeyStore (true );
0 commit comments