diff -r 92cbbfc996f3 -r 56aaa6cb3693 test/jdk/sun/security/ssl/X509TrustManagerImpl/SelfIssuedCert.java --- a/test/jdk/sun/security/ssl/X509TrustManagerImpl/SelfIssuedCert.java Fri May 11 14:55:56 2018 -0700 +++ b/test/jdk/sun/security/ssl/X509TrustManagerImpl/SelfIssuedCert.java Fri May 11 15:53:12 2018 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -209,6 +209,7 @@ SSLSocket sslSocket = (SSLSocket)sslsf.createSocket("localhost", serverPort); + sslSocket.setEnabledProtocols(new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" }); InputStream sslIS = sslSocket.getInputStream(); OutputStream sslOS = sslSocket.getOutputStream();