2 Replies Latest reply: Oct 3, 2012 11:57 AM by 965920 RSS

    How to update java keystore on Mac through java program?

    965920
      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());
      out.close();

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