How to access a certificate from Active directory..plz help me

Hi Team,Please send me the sample code to access a certificate from Active directory..Plzzzzzzzzz......Regards,Beta
[143 byte] By [beta222usa] at [2007-10-3 3:19:56]
# 1

The certificate is stored as a base64 encoded value in the attribute userCertificate. Just retrieve it as you would for any other binary attribute.

Once you have base64 decoded the value, you should be able to access the certificate(s) and their fields.

A simple search revealed the following O'Reilly title that may be useful

http://www.oreilly.com/catalog/javacrypt/chapter/ch06.html

And I'm sure you can find interesting pieces of information in the security forum that describe how to access a X.509 certificate

adler_stevena at 2007-7-14 21:12:00 > top of Java-index,Core,Core APIs...
# 2

Many more thanks steven.

But i need to get the certificate from Active Directroty.

I am able to retrieve the certificate object (userCertificate) from AD,but unable to cast to a proper class and hence read its attributes.

I can not assign the object to FileReader constructor as mentioned in the example

Would expecting more help from your side..

Best Regards,

Beta

beta222usa at 2007-7-14 21:12:00 > top of Java-index,Core,Core APIs...