We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb81169 commit 3b2b321Copy full SHA for 3b2b321
src/java.base/share/classes/sun/security/tools/keytool/Main.java
@@ -1119,7 +1119,6 @@ && isKeyStoreRelated(command)
1119
}
1120
1121
1122
- KeyStore cakstore = buildTrustedCerts();
1123
// -trustcacerts can be specified on -importcert, -printcert or -printcrl.
1124
// Reset it so that warnings on CA cert will remain for other command.
1125
if (command != IMPORTCERT && command != PRINTCERT
@@ -1128,6 +1127,7 @@ && isKeyStoreRelated(command)
1128
1127
1129
1130
if (trustcacerts) {
+ KeyStore cakstore = buildTrustedCerts();
1131
if (cakstore != null) {
1132
caks = cakstore;
1133
} else {
0 commit comments