mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8214024: Remove the default keytool -keyalg value
Reviewed-by: mullan
This commit is contained in:
parent
ddc8f8e757
commit
c0d097eac6
24 changed files with 146 additions and 143 deletions
|
@ -1151,17 +1151,15 @@ public final class Main {
|
|||
}
|
||||
} else if (command == GENKEYPAIR) {
|
||||
if (keyAlgName == null) {
|
||||
keyAlgName = "DSA";
|
||||
weakWarnings.add(String.format(rb.getString(
|
||||
"keyalg.option.1.missing.warning"), keyAlgName));
|
||||
throw new Exception(rb.getString(
|
||||
"keyalg.option.missing.error"));
|
||||
}
|
||||
doGenKeyPair(alias, dname, keyAlgName, keysize, groupName, sigAlgName);
|
||||
kssave = true;
|
||||
} else if (command == GENSECKEY) {
|
||||
if (keyAlgName == null) {
|
||||
keyAlgName = "DES";
|
||||
weakWarnings.add(String.format(rb.getString(
|
||||
"keyalg.option.1.missing.warning"), keyAlgName));
|
||||
throw new Exception(rb.getString(
|
||||
"keyalg.option.missing.error"));
|
||||
}
|
||||
doGenSecretKey(alias, keyAlgName, keysize);
|
||||
kssave = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue