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

Weijun Wang weijun at openjdk.org
Wed Sep 4 22:10:53 UTC 2024


On Wed, 4 Sep 2024 16:10:50 GMT, Hai-May Chao <hchao at openjdk.org> wrote:

> Given the changes to the System.console() behavior, where it no longer returns null when a write pipe is connected to the Java process, keytool needs to be updated to determine whether an interactive terminal is attached.

Do you need to check `Password::readPassword(InputStream in, boolean isEchoOn)` also? I'm not sure.

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

PR Comment: https://git.openjdk.org/jdk/pull/20855#issuecomment-2330238797


More information about the security-dev mailing list