tags:

views:

2871

answers:

1

I've seen a couple questions about how to convert a PFX to a cert file, but I need to go the other way.

I have two files:

bob_cert.cert

bob_key.pem

I'd like to convert them to a single .pfx file. Is there a tool that does this?

+5  A: 
openssl pkcs12 -inkey bob_key.pem -in bob_cert.cert -export -out bob_pfx.pfx
Francis
How can i achieve the same thing programmatically in C#?
Devil Jin
check MSDN. it has great examples for doing so in C#.
Francis
@Francis: Could you point me in the direction of these examples? I can't seem to find anything.
Nick