Read certificate purposes

93 views Asked by At

My users have a PKI card and a card reader. There is a private key on the PKI card and they must install the associated certificate. Certificate must be selected in the application and this is where the problem arises because some people choose the wrong certificate.

The question is how to read certificate purposes ? I need this line: Smart Card Logon.

enter image description here

Thanks in advance.

I tried: CertGetCertificateContextProperty CertOpenStore

and few other function but without success.

0

There are 0 answers