The property to be retrieved.
Currently defined identifiers and the data type to be
returned in pvData are listed in the
following table.
CERT_ACCESS_STATE_PROP_ID
Data type of pvData: A pointer to a DWORD value.
Returns a DWORD value that indicates whether
write operations to the certificate are persisted.
The DWORD value is not set if the certificate
is in a memory store or in a registry-based store
that is opened as read-only.
CERT_AIA_URL_RETRIEVED_PROP_ID
This identifier is reserved.
CERT_ARCHIVED_KEY_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a previously saved encrypted key hash for the certificate context.
CERT_ARCHIVED_PROP_ID
Data type of pvData:
NULL.
Indicates the certificate is skipped during
enumerations. A certificate with this property set
is found with explicit search operations,
such as those used to find a certificate with a
specific hash or a serial number.
No data in pvData is associated with this
property.
CERT_AUTHORITY_INFO_ACCESS_PROP_ID
This identifier is reserved.
CERT_AUTO_ENROLL_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a null-terminated Unicode string that names
the certificate type for which the certificate has
been auto enrolled.
CERT_AUTO_ENROLL_RETRY_PROP_ID
This identifier is reserved.
CERT_BACKED_UP_PROP_ID
This identifier is reserved.
CERT_CA_DISABLE_CRL_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Disables certificate revocation list (CRL) retrieval for certificates used by the certification authority (CA). If the CA certificate contains this property, it must also include the CERT_CA_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID property.
CERT_CA_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Contains the list of online certificate status protocol (OCSP) URLs to use for certificates issued by the CA certificate. The array contents are the Abstract Syntax Notation One (ASN.1)-encoded bytes of an X509_AUTHORITY_INFO_ACCESS structure where pszAccessMethod is set to szOID_PKIX_OCSP.
CERT_CROSS_CERT_DIST_POINTS_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Location of the cross certificates. Currently, this identifier
is only applicable to certificates and not to CRLs or certificate trust lists (CTLs).
The BYTE array contains an
ASN.1-encoded
CROSS_CERT_DIST_POINTS_INFO structure decoded by using
the CryptDecodeObject function with a X509_CROSS_CERT_DIST_POINTS
value for the lpszStuctType parameter.
Windows 2000: This identifier is not supported.
CERT_CTL_USAGE_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns an array of bytes that contain an
ASN.1-encoded CTL_USAGE structure.
CERT_DATE_STAMP_PROP_ID
Data type of pvData: A pointer to a FILETIME structure.
Time when the certificate was added to the store.
Windows 2000: This identifier is not supported.
CERT_DESCRIPTION_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the property displayed by the certificate
UI. This property allows the user to describe the
certificate's use.
CERT_EFS_PROP_ID
This identifier is reserved.
CERT_ENHKEY_USAGE_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns an array of bytes that contain an ASN.1-encoded CERT_ENHKEY_USAGE structure.
This structure contains an array of
Enhanced Key Usage object identifiers (OIDs),
each of which specifies a valid use of the certificate.
CERT_ENROLLMENT_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Enrollment information of the pending request that contains
RequestID, CADNSName, CAName, and DisplayName. The data format
is defined as follows.
| Bytes | Contents |
|
First 4 bytes
|
Pending request ID
|
|
Next 4 bytes
|
CADNSName size, in characters, including the terminating null character, followed
by CADNSName string with terminating null character
|
|
Next 4 bytes
|
CAName
size, in characters, including the terminating null character, followed by CAName
string with terminating null character
|
|
Next 4 bytes
|
DisplayName size, in
characters, including the terminating null character, followed by DisplayName
string with terminating null character
|
Windows 2000: This identifier is not supported.
CERT_EXTENDED_ERROR_INFO_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a null-terminated Unicode character
string that contains extended error information for the certificate context.
CERT_FORTEZZA_DATA_PROP_ID
This identifier is reserved.
CERT_FRIENDLY_NAME_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a null-terminated Unicode character
string that contains the display name for the
certificate.
CERT_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the SHA1 hash. If the hash does not exist,
it is computed by using the CryptHashCertificate function.
CERT_HCRYPTPROV_OR_NCRYPT_KEY_HANDLE_PROP_ID
Data type of pvData: A pointer to an HCRYPTPROV_OR_NCRYPT_KEY_HANDLE data type.
Returns either the HCRYPTPROV or NCRYPT_KEY_HANDLE choice.
CERT_IE30_RESERVED_PROP_ID
This identifier is reserved.
CERT_ISSUER_PUBLIC_KEY_MD5_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
MD5 hash of the public key associated with the private key
used to sign this certificate.
CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
MD5 hash of the issuer name and serial number from this certificate.
CERT_KEY_CONTEXT_PROP_ID
Data type of pvData: A pointer to a CERT_KEY_CONTEXT structure.
Returns a CERT_KEY_CONTEXT structure.
CERT_KEY_IDENTIFIER_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
If nonexistent, searches for the
szOID_SUBJECT_KEY_IDENTIFIER extension.
If that fails, a SHA1 hash is done on the certificate's
SubjectPublicKeyInfo member to produce the
identifier values.
CERT_KEY_PROV_HANDLE_PROP_ID
Data type of pvData: A pointer to an HCRYPTPROV value.
Returns the provider handle obtained from
CERT_KEY_CONTEXT_PROP_ID.
CERT_KEY_PROV_INFO_PROP_ID
Data type of pvData: A pointer to a CRYPT_KEY_PROV_INFO structure.
Returns a pointer to a CRYPT_KEY_PROV_INFO structure.
CERT_KEY_SPEC_PROP_ID
Data type of pvData: A pointer to a DWORD value.
Returns a DWORD value that specifies the private
key obtained from CERT_KEY_CONTEXT_PROP_ID if it exists.
Otherwise, if CERT_KEY_PROV_INFO_PROP_ID exists,
it is the source of the dwKeySpec.
CERT_MD5_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the MD5 hash. If the hash does not exist,
it is computed by using the CryptHashCertificate function.
CERT_NCRYPT_KEY_HANDLE_PROP_ID
Data type of pvData: A pointer to an NCRYPT_KEY_HANDLE data type.
Returns a CERT_NCRYPT_KEY_SPEC choice where applicable.
CERT_NEW_KEY_PROP_ID
This identifier is reserved.
CERT_NEXT_UPDATE_LOCATION_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the ASN.1-encoded CERT_ALT_NAME_INFO structure.
CERT_NEXT_UPDATE_LOCATION_PROP_ID is currently used only
with CTLs.
CERT_NO_AUTO_EXPIRE_CHECK_PROP_ID
This identifier is reserved.
CERT_OCSP_CACHE_PREFIX_PROP_ID
This identifier is reserved.
CERT_OCSP_RESPONSE_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns an encoded OCSP response for this certificate.
CERT_PUBKEY_ALG_PARA_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
For public keys that support algorithm parameter inheritance, returns the ASN.1-encoded PublicKey Algorithm parameters. For Digital Signature Standard (DSS), returns the parameters encoded by using
the CryptEncodeObject function. This property is used only if CMS_PKCS7 is defined.
CERT_PUBKEY_HASH_RESERVED_PROP_ID
This identifier is reserved.
CERT_PVK_FILE_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a null-terminated Unicode wide character
string that contains the file name that contains the private key
associated with the certificate's public key.
CERT_RENEWAL_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the hash of the renewed certificate.
Windows 2000: This identifier is not supported.
CERT_REQUEST_ORIGINATOR_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a null-terminated Unicode string that contains the DNS computer name for the origination of the certificate context request.
CERT_ROOT_PROGRAM_CERT_POLICIES_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a pointer to an encoded CERT_POLICIES_INFO structure that contains the application policies of the root certificate for the context. This property can be decoded by using the CryptDecodeObject function with the lpszStructType parameter set to X509_CERT_POLICIES and the dwCertEncodingType parameter set to a combination of X509_ASN_ENCODING bitwise OR PKCS_7_ASN_ENCODING.
CERT_ROOT_PROGRAM_NAME_CONSTRAINTS_PROP_ID
This identifier is reserved.
CERT_SHA1_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the SHA1 hash. If the hash does not exist, it is
computed by using the CryptHashCertificate function.
CERT_SIGNATURE_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the signature hash. If the hash does not exist,
it is computed by using the CryptHashToBeSigned function.
The length of the hash is 20 bytes for SHA and 16 for MD5.
CERT_SMART_CARD_DATA_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a pointer to encoded smart card data. Prior to calling CertGetCertificateContextProperty, you can use this constant to retrieve a smart card certificate by using the CertFindCertificateInStore function with the pvFindPara parameter set to CERT_SMART_CARD_DATA_PROP_ID and the dwFindType parameter set to CERT_FIND_PROPERTY.
CERT_SMART_CARD_ROOT_INFO_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns a pointer to an encoded CRYPT_SMART_CARD_ROOT_INFO structure.
CERT_SOURCE_LOCATION_PROP_ID
This identifier is reserved.
CERT_SOURCE_URL_PROP_ID
This identifier is reserved.
CERT_SUBJECT_DISABLE_CRL_PROP_ID
This identifier is reserved.
CERT_SUBJECT_INFO_ACCESS_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the subject information access extension of the certificate context as an encoded CERT_SUBJECT_INFO_ACCESS structure.
CERT_SUBJECT_NAME_MD5_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns an MD5 hash of the encoded subject name of the certificate context.
CERT_SUBJECT_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID
This identifier is reserved.
CERT_SUBJECT_PUBLIC_KEY_MD5_HASH_PROP_ID
Data type of pvData: A pointer to an array of BYTE values. The size of this array is specified in the pcbData parameter.
Returns the MD5 hash of this certificate's public key.
For more information about each property identifier, see the documentation on the dwPropId parameter in
CertSetCertificateContextProperty.