1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-27 22:49:14 +00:00
community.general/tests/integration/targets/java_cert
patchback[bot] 20ab9c3b5b
[PR #12151/994b7560 backport][stable-12] java_cert: fix PKCS12 password not passed to keytool -list (#12242)
java_cert: fix PKCS12 password not passed to `keytool -list` (#12151)

* fix(java_cert): remove -noprompt from keytool -list to allow stdin password

-noprompt is not a valid option for keytool -list (only for importkeystore/
importcert). On Java 8, passing it caused keytool to skip reading the store
password from stdin, resulting in a null password and NullPointerException.

Fixes #3023



* test(java_cert): add idempotency test for pkcs12 import with password

Exercises _export_public_cert_from_pkcs12 when the alias already exists,
verifying the password is correctly read from stdin on the comparison path.



* changelog: add fragment for PR 12151



---------


(cherry picked from commit 994b756026)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:40 +02:00
..
defaults Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
files [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
meta Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
tasks [PR #12151/994b7560 backport][stable-12] java_cert: fix PKCS12 password not passed to keytool -list (#12242) 2026-06-13 17:33:40 +02:00
aliases [PR #12023/87a42725 backport][stable-12] java_cert/java_keystore: re-enable RHEL tests (#12027) 2026-05-10 11:59:17 +02:00