Keytool password prompt option
843811Apr 6 2006 — edited Apr 13 2006I'm trying to call keytool inside a java program with Runtime.exec(). I want to call keytool to add a certificate to keystore. I can do it manually but when I do, it requires a password prompt. I'm using the command
$ keytool -import -file myCert.crt -trustcacerts -alias ldap
-keystore cacertsFile
Is there a keytool option that I can use to enter the password so that it dosn't prompt me for it?