I have an PFX Certificate file containing both Client Certificate and Private Key. Then I have imported this pfx file in Windows Personal Certificate Store.
Now I need to extract the certificate and Private Key bytes and passed to an openssl api.
I am able to extract the Certificate but not able to extract the private key bytes in Plain Text using windows Crypto API's .
I have searched for it but not got exactly what I need. So please help me in this.