In some cases it might be essential to evaluate for which usages a certificate has been created. Aloaha provides two properties for this evaluation. The content of those properties are bitmask encoded values.
CertCapabilities
CertCapabilities(fingerprint, ctype) returns the certificate capabilities in "CSP Notation". Fingerprint has to be the fingerprint of the certificate and ctype can be of type 0-2.
The result bitmask encodes the following parameter:
CertUsage(fingerprint, ctype) returns the certificate capabilities in "CSP Notation". Fingerprint has to be the fingerprint of the certificate and ctype can be of type 0-2.
The result bitmask encodes the following parameter:
Private Sub Command1_Click()
Dim LngReader As Long
Dim CertificateBA() As Byte
Dim CA_BA() As Byte
Dim ctype As Long
Dim searchfilter As Long
Dim fingerprint As String