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