win32crypt.CryptEnumKeyIdentifierProperties

list = CryptEnumKeyIdentifierProperties(KeyIdentifier, PropId , Flags , ComputerName )

Enumerates private keys for certificates and their properties

Parameters

KeyIdentifier=None : string

Id of a certificate key, can be None for all keys

PropId=0 : int

CERT_*_PROP_ID constant. Limits returned values to specified propery, Use 0 for all

Flags=0 : int

Can be CRYPT_KEYID_MACHINE_FLAG to list keys for local machine, or remote machine if ComputerName is given

ComputerName=None : PyUnicode

Name of remote computer, use None for local machine