shawn
shawn

Reputation: 4223

Changing the password of a java keystore programmatically

How do I go about changing the password of a JKS keystore(and all entries in it) from java code?

Upvotes: 7

Views: 3057

Answers (2)

Alfabravo
Alfabravo

Reputation: 7589

Perhaps expect4j is the answer. http://code.google.com/p/expect4j/

It ports original expect package to java and it interacts well with prompts and stuff

Upvotes: 0

korifey
korifey

Reputation: 3519

I think you can rewrite keystore to the same file but different password with this method

Upvotes: 2

Related Questions