Skip to content

Commit 3b2b321

Browse files
committed
8331391: Enhance the keytool code by invoking the buildTrustedCerts method for essential options
Backport-of: c9bee173d61f4accfc4adc280ab5d21600191756
1 parent cb81169 commit 3b2b321

File tree

1 file changed

+1
-1
lines changed
  • src/java.base/share/classes/sun/security/tools/keytool

1 file changed

+1
-1
lines changed

src/java.base/share/classes/sun/security/tools/keytool/Main.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,6 @@ && isKeyStoreRelated(command)
11191119
}
11201120
}
11211121

1122-
KeyStore cakstore = buildTrustedCerts();
11231122
// -trustcacerts can be specified on -importcert, -printcert or -printcrl.
11241123
// Reset it so that warnings on CA cert will remain for other command.
11251124
if (command != IMPORTCERT && command != PRINTCERT
@@ -1128,6 +1127,7 @@ && isKeyStoreRelated(command)
11281127
}
11291128

11301129
if (trustcacerts) {
1130+
KeyStore cakstore = buildTrustedCerts();
11311131
if (cakstore != null) {
11321132
caks = cakstore;
11331133
} else {

0 commit comments

Comments
 (0)