Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
/ jdk23u Public archive

Commit 9ed9510

Browse files
Prasadrao Koppulacoffeys
Prasadrao Koppula
authored andcommitted
8331391: Enhance the keytool code by invoking the buildTrustedCerts method for essential options
Backport-of: c9bee17
1 parent 858118e commit 9ed9510

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
@@ -1132,7 +1132,6 @@ && isKeyStoreRelated(command)
11321132
}
11331133
}
11341134

1135-
KeyStore cakstore = buildTrustedCerts();
11361135
// -trustcacerts can be specified on -importcert, -printcert or -printcrl.
11371136
// Reset it so that warnings on CA cert will remain for other command.
11381137
if (command != IMPORTCERT && command != PRINTCERT
@@ -1141,6 +1140,7 @@ && isKeyStoreRelated(command)
11411140
}
11421141

11431142
if (trustcacerts) {
1143+
KeyStore cakstore = buildTrustedCerts();
11441144
if (cakstore != null) {
11451145
caks = cakstore;
11461146
} else {

0 commit comments

Comments
 (0)