2 Replies Latest reply on Oct 3, 2012 4:57 PM by 965920

    How to update java keystore on Mac through java program?

      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);
      ks.store(out, kspass.toCharArray());

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