Android: access installed security certificates?
<p>Users can install p12 security certificates on their android devices.  Is there a way that I can list the installed certificates problematically, and obtain references to them (presumably as a java.security.KeyStore object)?</p>

<p>Edit:</p>

<p>In java, this can be accomplished with:</p>

<pre><code>  public static void main (String [] args)
  {
        try
        {                 
              KeyStore ks = KeyStore.getInstance("Windows-MY");
              ks.load(null, null);
              Enumeration aliases = ks.aliases();
              while (aliases.hasMoreElements())
              {
                    Certificate c = ks.getCertificate((String)aliases.nextElement());
                    System.out.println (c);
              }
        }
        catch (Throwable t)
        {
              t.printStackTrace();
        }
  }
</code></pre>
