RFR: 8339347: keytool -importpass insists prompting the user even if there is no terminal [v2]

Hai-May Chao hchao at openjdk.org
Thu Sep 5 17:58:08 UTC 2024


On Thu, 5 Sep 2024 16:27:42 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Hai-May Chao has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update setResponse in testcase
>
> test/jdk/sun/security/tools/keytool/TestImportPass.java line 37:
> 
>> 35: public class TestImportPass {
>> 36:     public static void main(String[] args) throws Throwable {
>> 37:         SecurityTools.setResponse("pass123", "pass123");
> 
> If console is not terminal, it looks like there is no need to repeat the passphrase?

Yes, removed it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20855#discussion_r1745949892


More information about the security-dev mailing list