PyCERT_CONTEXT.CryptAcquireCertificatePrivateKey

(int,PyCRYPTPROV) = CryptAcquireCertificatePrivateKey(Flags)

Retrieves the private key associated with the certificate

Parameters

Flags=0 : int

Combination of CRYPT_ACQUIRE_*_FLAG constants

Comments

Only the owner of the certificate can use this method

Return Value

Returns the KeySpec (AT_KEYEXCHANGE or AT_SIGNATURE) and a CSP handle to the key