PyCERT_CONTEXT.CertGetCertificateContextProperty
object = CertGetCertificateContextProperty(PropId)
Retrieves the specified property from the certificate
Parameters
PropId | Returned value |
CERT_ARCHIVED_PROP_ID | Boolean |
CERT_DATE_STAMP_PROP_ID | PyTime |
CERT_ACCESS_STATE_PROP_ID | int |
CERT_KEY_SPEC_PROP_ID | int |
CERT_DESCRIPTION_PROP_ID | Unicode |
CERT_FRIENDLY_NAME_PROP_ID | Unicode |
CERT_PVK_FILE_PROP_ID | Unicode |
CERT_AUTO_ENROLL_PROP_ID | Unicode |
CERT_HASH_PROP_ID | String containing a hash |
CERT_SHA1_HASH_PROP_ID | String containing a hash |
CERT_MD5_HASH_PROP_ID | String containing a hash |
CERT_SIGNATURE_HASH_PROP_ID | String containing a hash |
CERT_KEY_IDENTIFIER_PROP_ID | String containing a hash |
CERT_SUBJECT_NAME_MD5_HASH_PROP_ID | String containing a hash |
CERT_KEY_PROV_HANDLE_PROP_ID | PyCRYPTPROV |
CERT_SUBJECT_PUBLIC_KEY_MD5_HASH_PROP_ID | String containing a hash |
CERT_ISSUER_PUBLIC_KEY_MD5_HASH_PROP_ID | String containing a hash |
CERT_CTL_USAGE_PROP_ID | Encoded CTL_USAGE, decode as X509_ENHANCED_KEY_USAGE (CTL_USAGE and CERT_ENHKEY_USAGE are identical) |
CERT_ENHKEY_USAGE_PROP_ID | Encoded CTL_USAGE. Can be decoded using cryptoapi::CryptDecodeObjectEx with X509_ENHANCED_KEY_USAGE |
CERT_KEY_PROV_INFO_PROP_ID | CRYPT_KEY_PROV_INFO dict |
CERT_KEY_CONTEXT_PROP_ID | Dict representing CERT_KEY_CONTEXT struct |
CERT_NEXT_UPDATE_LOCATION_PROP_ID | Encoded CERT_ALT_NAME_INFO, decode using cryptoapi::CryptDecodeObjectEx with szOID_NEXT_UPDATE_LOCATION |
Return Value
Type of object returned is dependent on the property id requested.