pywin32 icon indicating copy to clipboard operation
pywin32 copied to clipboard

Need impl of PyWinObject_AsCRYPT_KEY_PROV_INFO to enable setting certificate private key

Open pasiorovuo opened this issue 5 years ago • 1 comments

CERT_KEY_PROV_INFO_PROP_ID is not yet implemented for win32crypt.CertSetCertificateContextProperty() as clearly indicated by the error message:

context.CertSetCertificateContextProperty(CERT_KEY_PROV_INFO_PROP_ID, privat
e_key)
NotImplementedError: Property Id 2 is not supported yet

Implementation is commented out in the source file without any explanation on what's the issue with it. Can anyone shed any light in the matter?

pasiorovuo avatar Aug 14 '20 13:08 pasiorovuo

There's no PyWinObject_AsCRYPT_KEY_PROV_INFO - once this is written that block can be uncommented. I'm not going to find time to do this any time soon, but would obviously welcome a pull request.

mhammond avatar Sep 19 '20 04:09 mhammond