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?