--- old/test/jdk/javax/net/ssl/ServerName/SSLSocketSNISensitive.java 2018-05-11 15:07:18.639145700 -0700 +++ new/test/jdk/javax/net/ssl/ServerName/SSLSocketSNISensitive.java 2018-05-11 15:07:18.153160300 -0700 @@ -54,7 +54,8 @@ import java.security.interfaces.*; import java.util.Base64; - +// Note: this test case works only on TLS 1.2 and prior versions because of +// the use of MD5withRSA signed certificate. public class SSLSocketSNISensitive { /* @@ -415,7 +416,7 @@ TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmAlgorithm); tmf.init(ks); - SSLContext ctx = SSLContext.getInstance("TLS"); + SSLContext ctx = SSLContext.getInstance("TLSv1.2"); KeyManagerFactory kmf = KeyManagerFactory.getInstance("NewSunX509"); kmf.init(ks, passphrase);