Keytool API

Is there any API to query of a list of certificates in keystore?Thanks-Dan
[102 byte] By [danttrana] at [2007-9-27 4:53:32]
# 1

Yes.

1. Use java.security.KeyStore to load a keystore

2. the method aliases() on a KeyStore object will return an Enumeration of all entries in the KeyStore

3. Use the method isCertificateEntry to test if an alias is a Trusted Cert

or use isKeyEntry to test if an alias is one your regular Certficate or Private Key.

I have some code somewhere to do this but can't find it right now. If you stil need

the code, send me an email @yahoo.com

>

> Is there any API to query of a list of certificates in

> keystore?

>

> Thanks

>

> -Dan

IanHuynha at 2007-7-8 1:09:15 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...