Getting Information from Certificates
Getting information from a certificate isn't an easy prospect when you're working with Visual Basic. The Certificate Context type structure includes a pointer to a Certificate Information type structure that contains most of the information you would want about the certificate. This information includes the certificate serial number, the issuer, the subject, the valid date range for the certificate, and other information. Unfortunately, this information is off-limits unless you dip into a little bit of C/C++ code in a DLL. (Actually, this information isn't as off-limits as you might think, as you'll discover in another chapter.)
Although building a DLL to access those properties is tempting, this is a Visual ...
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.