locked
NcryptopenKey returns Key do not exist even when private key is present RRS feed

  • Question

  • Tried to read the private key of the certificate using NCryptOpenKey from service which is running with LocalService context for signing data. API returned key does not exist error. Installed Certificate is having extension keyUsage Digital Signature and also confirmed the permission of the private keys. Openssl generated certificate with/without the extension keyUsage is working fine.

    Microsoft CA generated certificate is not working resulting in above mentioned error. Not sure which extension is creating this error

    Monday, January 22, 2018 2:14 PM