diff -r 92cbbfc996f3 -r 56aaa6cb3693 test/jdk/sun/security/tools/keytool/PrintSSL.java --- a/test/jdk/sun/security/tools/keytool/PrintSSL.java Fri May 11 14:55:56 2018 -0700 +++ b/test/jdk/sun/security/tools/keytool/PrintSSL.java Fri May 11 15:53:12 2018 -0700 @@ -53,7 +53,7 @@ // make sure that "-printcert" works with weak algorithms OutputAnalyzer out = SecurityTools.keytool("-genkeypair " + "-keystore keystore -storepass passphrase " - + "-keypass passphrase -keyalg rsa -keysize 512 " + + "-keypass passphrase -keyalg rsa -keysize 1024 " + "-sigalg MD5withRSA -alias rsa_alias -dname CN=Server"); System.out.println(out.getOutput()); out.shouldHaveExitValue(0); @@ -92,7 +92,7 @@ System.setProperty("javax.net.ssl.keyStorePassword", "passphrase"); System.setProperty("javax.net.ssl.keyStore", "keystore"); SSLServerSocketFactory sslssf = - (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); + (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); try (ServerSocket server = sslssf.createServerSocket(0)) { this.serverPort = server.getLocalPort(); System.out.printf("%nServer started on: %s%n", getServerPort()); @@ -110,5 +110,5 @@ } } +} -}