views:

41

answers:

0

I'm using nss libraries to read certificates off a smart card/CAC. This is for an app on red hat linux. Bascially I need to get the list of certificates from the CAC and present to the user in a gui (using wxWidgets) allowing the user to pick the certificate to use for authentication. For that, I need to present the certificate list in a human readable manner where it would have certificate or user name in one column and certificate/key type in another.

In my c++ program I have the CERTCertificate object and I can get the nickname which can serve as the cert name but how do I get the certificate usage string which would tell user what that particular certificate is for??? Thanks!