RFR: 8231107: Allow store password to be null when saving a PKCS12 KeyStore

Weijun Wang weijun at openjdk.java.net
Mon Oct 25 23:47:12 UTC 2021


On Mon, 25 Oct 2021 17:05:58 GMT, Sean Mullan <mullan at openjdk.org> wrote:

>> You can create a password-less PKCS12 KeyStore file now by calling `ks.store(outStream, null)` no matter what the default cert protection algorithm and Mac algorithm are defined in `java.security`.
>> 
>> Note: the system properties set in `ToolsJDK.gmk` to generate `cacerts` must be retained (at the moment) because the tool is launched with BOOT_JDK.
>
> test/jdk/sun/security/pkcs12/EmptyPassword.java line 27:
> 
>> 25:  * @test
>> 26:  * @bug 8202299 8231107
>> 27:  * @modules java.base/sun.security.tools.keytool
> 
> Can you add an @summary?

I'll update the existing summary to `@summary Testing empty (null, "", "\0") password behaviors`.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5950



More information about the security-dev mailing list