< prev index next >
test/jdk/sun/security/tools/keytool/PrintSSL.java
Print this page
*** 51,61 ****
Files.deleteIfExists(Paths.get("keystore"));
// make sure that "-printcert" works with weak algorithms
OutputAnalyzer out = SecurityTools.keytool("-genkeypair "
+ "-keystore keystore -storepass passphrase "
! + "-keypass passphrase -keyalg rsa -keysize 512 "
+ "-sigalg MD5withRSA -alias rsa_alias -dname CN=Server");
System.out.println(out.getOutput());
out.shouldHaveExitValue(0);
int port = new Server().start();
--- 51,61 ----
Files.deleteIfExists(Paths.get("keystore"));
// make sure that "-printcert" works with weak algorithms
OutputAnalyzer out = SecurityTools.keytool("-genkeypair "
+ "-keystore keystore -storepass passphrase "
! + "-keypass passphrase -keyalg rsa -keysize 1024 "
+ "-sigalg MD5withRSA -alias rsa_alias -dname CN=Server");
System.out.println(out.getOutput());
out.shouldHaveExitValue(0);
int port = new Server().start();
*** 108,114 ****
public int getServerPort() {
return this.serverPort;
}
}
-
}
--- 108,114 ----
public int getServerPort() {
return this.serverPort;
}
}
}
+
< prev index next >