How to access the Java Certificate Store with Java?

Opa114 picture Opa114 · Apr 22, 2015 · Viewed 9.6k times · Source

I found out that Java has it's own "certificate Store" which is located in a file in the security-folder inside the lib-folder.

You could access this from the Java Control Panel -> Security -> Manage Certificates.

But I want to access them via Java-Code. Does someone have some information about this? How the certificates are stored inside the certificate-File? Is there a Java built-in way for this or official documentation from Java / Oracle?

Thanks!