Where is the Oracle java jdk keystore located?

Solution 1:

The keystore is : jre/lib/security/cacerts . You can list its contents by:

keytool -list -keystore java.home/jre/lib/security/cacerts -v

To find JAVA_HOME, issue this command:

sudo apt-get install galternatives

And then run that program.

But, it sound to me like you dont need to alter the keystore. What you need to do is edit the .policy file. It's easy to find at:

java.home/jre/lib/security/java.policy

Of course, if you still cant find it then it is easy to derive with this command:

sudo find / -name "java"