RFR: 8266220: keytool still prompt for store password on a password-less pkcs12 file if -storetype pkcs12 is specified
Weijun Wang
weijun at openjdk.java.net
Thu Apr 29 17:53:49 UTC 2021
On Wed, 28 Apr 2021 15:07:14 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> It's awkward that for a password-less pkcs12 keystore, `keytool -list` does not prompt for a password but `keytool -list -storetype pkcs12` does.
New commit pushed. When the file is opened the second time, uses a local variable and close it quickly. The `ksStream` global variable is only assigned once and is always closed in a finally block.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3764
More information about the security-dev
mailing list