You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check, if keytool exists, before trying to execute it #445
If keytool does not exist, sensitive Password is not “redacted” in Error-Message:
Error: /Stage[main]/Myprofilemodule/Java_ks[myRootCA]/ensure: change from 'absent' to 'latest' failed:
Execution of 'keytool -importcert -noprompt -alias myrootca -file /etc/pki/tls/certs/myCA_root.pem -keystore /path/to/mykeystore -srcstorepass MyPassword -deststorepass MyPassword' returned 1:
Error: Could not execute posix command: No such file or directory - keytool
Describe the Solution You Would Like
check, if keytool exists, before trying to execute it
Activity
danifr commentedon Nov 10, 2023
@david22swan (apologies for tagging you, you seem to be the last one who contributed to the latest version of this module)
I have a similar issue, I have installed 2 different version of java on the same machine and java_ks does not find the
keytoolone I'd like to use.It there a way to implement a way to provide the PATH where keytool is installed? Thanks
danifr commentedon Nov 13, 2023
I worked around it creating a link:
cocker-cc commentedon Nov 13, 2023
@danifr: But you know, that this is not the Point of this Issue, right? This Issue is about leaking Secrets.
danifr commentedon Nov 13, 2023
Yes yes sorry for hijacking your ticket :)