Query an X.509 certificate file for selected information.
Public Function x509QueryCert ( _ szCertFile As String, _ szQuery As String, _ Optional nOptions As Long = 0 _ ) As String
"version" "serialNumber" "signatureAlgorithm" "sigAlgId" "signatureValue" "notBefore" "notAfter" "issuerName" "subjectName" "subjectPublicKeyAlgorithm" "subjectKeyIdentifier" "authorityKeyIdentifier" "rfc822Name" "isCA" "keyUsageString" "extKeyUsageString" "cRLDistributionPointsURI" "authorityInfoAccessURI" "subjectAltName" "hashAlgorithm" "pssParams"
PKI_X509_LATIN1 or PKI_X509_UTF8 PKI_X509_LDAP PKI_X509_DECIMAL
PKI_X509_UTF8
will output attribute string encoded in UTF-8.
PKI_X509_LATIN1
will attempt to convert output to Latin-1 encoding.Debug.Print x509QueryCert("AliceRSASignByCarl.cer", "subjectName") CN=AliceRSA