mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-15 13:49:42 +02:00
add comment to test
This commit is contained in:
parent
e393a3e768
commit
068c35c6a0
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ public class RemovedFiles {
|
|||
Path.of("."),
|
||||
Files.writeString(Path.of("c"), "c"));
|
||||
SecurityTools.keytool("-genkeypair -storepass changeit -keystore ks -alias w -dname CN=w -keyalg ec");
|
||||
|
||||
// Sign the JAR using an already disabled signature algorithm SHA1withECDSA.
|
||||
// The file can still be signed but verification will treat it as unsigned.
|
||||
SecurityTools.jarsigner("-storepass changeit -keystore ks c.jar w -sigalg SHA1withECDSA")
|
||||
.shouldContain("the -sigalg option is considered a security risk and is disabled.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue