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
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