pywin32
pywin32 copied to clipboard
Need impl of PyWinObject_AsCRYPT_KEY_PROV_INFO to enable setting certificate private key
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?
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.