kagali-san
kagali-san

Reputation: 3082

Accessing PKCS12 stored certificate

I'm exploring a case where the stored certificate must be extracted for using with OpenSSL's (C++ application). It is imported to Local Computer\Personal store, and had contained a password-protected private key.

What will be available to me via MS CryptoAPI?

What I want to is to either retrieve the original certificate, or its private key in either password-protected or unprotected form. Is it possible? Or CryptoAPI isn't intended for providing certificate copies and I shall use its functions instead of using OpenSSL?

Upvotes: 1

Views: 839

Answers (1)

Raj
Raj

Reputation: 1163

What I want to is to either retrieve the original certificate, or its private key in either password-protected or unprotected form. Is it possible?

Yes, you can export your PFX from certificate store using cryptoAPI with PFXExportCertStore

Upvotes: 1

Related Questions