This discussion is archived
2 Replies Latest reply: Oct 3, 2012 9:57 AM by 965920 RSS

How to update java keystore on Mac through java program?

965920 Newbie
Currently Being Moderated
I'm trying to update CA Certificate through Java program. Using below it works fine on Windows and Linux. But on Mac it throws file permission error.

KeyStore ks;
String kspass='changeme';
FileOutputStream out = new FileOutputStream(ksFileName);, kspass.toCharArray());

Is it possible to get the admin password through Java program and then update the keystore? Or any other options?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points