We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7579d37 commit c9bee17Copy full SHA for c9bee17
src/java.base/share/classes/sun/security/tools/keytool/Main.java
@@ -1132,7 +1132,6 @@ && isKeyStoreRelated(command)
1132
}
1133
1134
1135
- KeyStore cakstore = buildTrustedCerts();
1136
// -trustcacerts can be specified on -importcert, -printcert or -printcrl.
1137
// Reset it so that warnings on CA cert will remain for other command.
1138
if (command != IMPORTCERT && command != PRINTCERT
@@ -1141,6 +1140,7 @@ && isKeyStoreRelated(command)
1141
1140
1142
1143
if (trustcacerts) {
+ KeyStore cakstore = buildTrustedCerts();
1144
if (cakstore != null) {
1145
caks = cakstore;
1146
} else {
0 commit comments