@@ -362,7 +362,7 @@ public static KeyStore loadKeyStore(final InputStream stream, final char[] passp
362362 }
363363
364364 public static SSLEngine initServerSSLEngine (final CAService caService , final String clientAddress ) throws GeneralSecurityException , IOException {
365- final SSLContext sslContext = SSLUtils .getSSLContextWithLatestVersion ();
365+ final SSLContext sslContext = SSLUtils .getSSLContextWithLatestProtocolVersion ();
366366 if (caService != null ) {
367367 return caService .createSSLEngine (sslContext , clientAddress );
368368 }
@@ -391,7 +391,7 @@ public static SSLContext initManagementSSLContext(final CAService caService) thr
391391 final KeyManagerFactory kmf = KeyManagerFactory .getInstance ("SunX509" );
392392 kmf .init (ks , passphrase );
393393
394- final SSLContext sslContext = SSLUtils .getSSLContextWithLatestVersion ();
394+ final SSLContext sslContext = SSLUtils .getSSLContextWithLatestProtocolVersion ();
395395 sslContext .init (kmf .getKeyManagers (), tms , new SecureRandom ());
396396 return sslContext ;
397397 }
@@ -435,7 +435,7 @@ public static SSLContext initClientSSLContext() throws GeneralSecurityException,
435435 final KeyManagerFactory kmf = KeyManagerFactory .getInstance ("SunX509" );
436436 kmf .init (ks , passphrase );
437437
438- final SSLContext sslContext = SSLUtils .getSSLContextWithLatestVersion ();
438+ final SSLContext sslContext = SSLUtils .getSSLContextWithLatestProtocolVersion ();
439439 sslContext .init (kmf .getKeyManagers (), tms , new SecureRandom ());
440440 return sslContext ;
441441 }
0 commit comments