title: Listing certificates in JVM trust store
body: <p>I've defined a custom truststore via system properties:</p>
  
  <pre><code>System.setProperty("javax.net.ssl.trustStore", ...);
  System.setProperty("javax.net.ssl.trustStorePassword", ...);
  </code></pre>
  
  <p>Given that the VM already takes care of loading the file, I'd like to list those certificates that were loaded. I don't want to once again load the truststore into a stream and obtain the certificates from there, but rather I want to see those that the VM already loaded by itself. Also, I want to see them from within my own application, not using a separate tool. I've done some googling, but so far I've been unable to find this.</p>