8286069: keytool prints out wrong key algorithm for -importpass command

Reviewed-by: hchao, valeriep
This commit is contained in:
Weijun Wang 2022-05-04 02:56:18 +00:00
parent efcd3d3a8f
commit 075ce8a0d0
2 changed files with 108 additions and 2 deletions

View file

@ -1846,8 +1846,7 @@ public final class Main {
if (verbose) {
MessageFormat form = new MessageFormat(rb.getString(
"Generated.keyAlgName.secret.key"));
Object[] source =
{useDefaultPBEAlgorithm ? "PBE" : secKey.getAlgorithm()};
Object[] source = { "PBE" };
System.err.println(form.format(source));
}
} else {