win32crypt.CertNameToStr

str = CertNameToStr(Name, StrType , CertEncodingType )

Converts an encoded CERT_NAME_INFO into a formatted string

Parameters

Name : str

String containing an encoded CERT_NAME_INFO, as used with certificate Issuer and Subject

StrType=CERT_SIMPLE_NAME_STR : int

Type of string to format, one of CERT_SIMPLE_NAME_STR,CERT_OID_NAME_STR,CERT_X500_NAME_STR

CertEncodingType=X509_ASN_ENCODING : int

Input encoding

Comments

Usually this encoded data is contained in a CERT_NAME_BLOB