Verifying Certificates Against a CA

If the CA that issued a particular certificate is running Microsoft's Certificate Server, Windows 2000 Server (also NT4 Server with the Option Pack installed) provides you with a COM object you can use to check the status of a particular certificate. You also can use this COM object to administer the certificate services of the CA, assuming that you have the appropriate permissions to do so.

Extracting a Certificate Serial Number

Before you can verify a certificate's validity, you need to be able to get the certificate's serial number. This piece of information is available through the CERT_INFO type structure. The definition for this type structure is as follows:

 Type CERT_INFO dwVersion As Long ...

Get Developing Secure Applications with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.