mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8331391: Enhance the keytool code by invoking the buildTrustedCerts method for essential options
Reviewed-by: coffeys, mullan
This commit is contained in:
parent
7579d37402
commit
c9bee173d6
1 changed files with 1 additions and 1 deletions
|
@ -1132,7 +1132,6 @@ public final class Main {
|
|||
}
|
||||
}
|
||||
|
||||
KeyStore cakstore = buildTrustedCerts();
|
||||
// -trustcacerts can be specified on -importcert, -printcert or -printcrl.
|
||||
// Reset it so that warnings on CA cert will remain for other command.
|
||||
if (command != IMPORTCERT && command != PRINTCERT
|
||||
|
@ -1141,6 +1140,7 @@ public final class Main {
|
|||
}
|
||||
|
||||
if (trustcacerts) {
|
||||
KeyStore cakstore = buildTrustedCerts();
|
||||
if (cakstore != null) {
|
||||
caks = cakstore;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue