PyCRYPTPROV.CryptExportPublicKeyInfo

PyCERT_PUBLIC_KEY_INFO = CryptExportPublicKeyInfo(KeySpec, CertEncodingType )

Exports a public key to send to other users Returned dict can be serialized for sending to another python application using pickle.dump

Parameters

KeySpec : int

AT_KEYEXCHANGE or AT_SIGNATURE

CertEncodingType=X509_ASN_ENCODING combined with PKCS_7_ASN_ENCODING : int

Specifies encoding for exported key info