Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Keytool password prompt option

843811Apr 6 2006 — edited Apr 13 2006
I'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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2006
Added on Apr 6 2006
5 comments
2,129 views