--- a/test/jdk/javax/net/ssl/ServerName/SSLSocketSNISensitive.java Mon Jun 25 21:22:16 2018 +0300
+++ b/test/jdk/javax/net/ssl/ServerName/SSLSocketSNISensitive.java Mon Jun 25 13:41:39 2018 -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);