I have a previously generated RSA private key that is stored as PRIVATEKEYBLOB . I am trying to move this to a new certificate for better key management. How can I take this blob and turn it into a .pfx certificate?
I have HCRYPTPROV (uses MS_ENHANCED_PROV and PROV_RSA_FULL). I can get HCRYPTKEY from CryptImportKey.
PFXExportCertStoreEx, apparently, is a function of exporting it to PFX-blob (which I assume that I will write to a file), but I do not understand how to get the key from it.
source share