7

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

shawn
  • 4,063
  • 7
  • 37
  • 54

2 Answers2

2

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

korifey
  • 3,379
  • 17
  • 17
0

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

Alfabravo
  • 7,493
  • 6
  • 46
  • 82