I am trying to export public and private key of an ECDSA certificate from Windows key store. PFXExportCertStoreEx fails when I try to export ECDSA certificate. GetLastError() returns 0x80090016. I am able to correctly export cert and key for a RSA certificate from Windows key store using the same API. Is the API usage wrong for ECDSA certificate or are additional steps required?
Additional info: The error code means "keyset doesn't exist" which I am most certain is wrong information. And the private keys is exportable as I added certificate to key store with that option checked.
Thanks in advance.