win32crypt.CryptDecodeObjectEx
object = CryptDecodeObjectEx(StructType, Encoded , Flags , CertEncodingType , DecodePara )
Decodes ASN encoded data
Parameters
OID | Object returned |
szOID_ENHANCED_KEY_USAGE | Sequence of OIDs |
X509_ENHANCED_KEY_USAGE | Sequence of OIDs |
szOID_KEY_USAGE | PyCRYPT_BIT_BLOB |
X509_KEY_USAGE | PyCRYPT_BIT_BLOB |
X509_BITS | PyCRYPT_BIT_BLOB |
szOID_SUBJECT_ALT_NAME | PyCERT_ALT_NAME_INFO |
szOID_SUBJECT_ALT_NAME2 | PyCERT_ALT_NAME_INFO |
szOID_ISSUER_ALT_NAME | PyCERT_ALT_NAME_INFO |
szOID_ISSUER_ALT_NAME2 | PyCERT_ALT_NAME_INFO |
szOID_NEXT_UPDATE_LOCATION | PyCERT_ALT_NAME_INFO |
X509_ALTERNATE_NAME | PyCERT_ALT_NAME_INFO |
X509_NAME_VALUE | PyCERT_NAME_VALUE |
X509_UNICODE_ANY_STRING | PyCERT_NAME_VALUE |
X509_UNICODE_NAME_VALUE | PyCERT_NAME_VALUE |
X509_NAME | PyCERT_NAME_INFO |
X509_UNICODE_NAME | PyCERT_NAME_INFO |
szOID_KEY_ATTRIBUTES | PyCERT_KEY_ATTRIBUTES_INFO |
X509_KEY_ATTRIBUTES | PyCERT_KEY_ATTRIBUTES_INFO |
szOID_BASIC_CONSTRAINTS | PyCERT_BASIC_CONSTRAINTS_INFO |
X509_BASIC_CONSTRAINTS | PyCERT_BASIC_CONSTRAINTS_INFO |
szOID_BASIC_CONSTRAINTS2 | PyCERT_BASIC_CONSTRAINTS2_INFO |
X509_BASIC_CONSTRAINTS2 | PyCERT_BASIC_CONSTRAINTS2_INFO |
szOID_CERT_POLICIES | Sequence of PyCERT_POLICY_INFO objects |
szOID_APPLICATION_CERT_POLICIES | Sequence of PyCERT_POLICY_INFO objects |
X509_CERT_POLICIES | Sequence of PyCERT_POLICY_INFO objects |
szOID_SUBJECT_KEY_IDENTIFIER | Binary string containing the key identifier |
szOID_AUTHORITY_KEY_IDENTIFIER | PyCERT_AUTHORITY_KEY_ID_INFO |
X509_AUTHORITY_KEY_ID | PyCERT_AUTHORITY_KEY_ID_INFO |
Return Value
Type of object returned is dependent on the StructType to be decoded