Last post Oct 19, 2020 09:05 AM by Sean Fang
Oct 16, 2020 07:50 AM|pathipati|LINK
Hi I have a .pem file, from that I have to extract to .pfx, .cer and .key. Is it possible in .NET?
I also tried using openssl, but this not worked for me. can any one help me this?
Oct 19, 2020 09:05 AM|Sean Fang|LINK
I am not security expert. However, after investigating on google, I think the answer is YES. It is possible using .NET coding with Bouncy Castle(
https://www.bouncycastle.org/), which is a free package that you could use to convert .pem files to .pfx file.
Regarding .cer and .key, you could simply copy/read out the content since .pem, .cer and .key are different extensions of PEM files.
Let focus on the conversion between .pem and .pfx file.
You could refer to below links:
Hope this helps.