Given a .pfx file is a there a way i can programmatically get .crt and .key file from it?
I even explored generating X509Certificate2 from .pfx file and then tried getting .crt and .key but failed to do so
Currently my application contains - ca.crt - my_client_cert.pfx - my_client_cert.crt - my_client_cert.key
Note : the pfx file is generated using
openssl pkcs12 -export -out my_client_cert.pfx -inkey my_client_cert.key -in my_client_cert.crt
It seems redundant to have same files twice, so was looking for removing redundancy