security - Conversion from cert file to pfx file -
is possible convert cert file pfx file? tried importing cerf file ie, never shown under "personal" tab, cannot export there.
i looking if there alternatives available.
fyi, cerf file created using "keytool" , doing export cert file.
this article describes 2 ways of creating .pfx file .cer file:
create public & private keys (you prompt define private key’s password):
makecert.exe -sv mykey.pvk -n "cn=.net ready!!!" mykey.cer
create pfx file public , private key
pvk2pfx.exe -pvk mykey.pvk -spc mykey.cer -pfx mypfx.pfx -po toto
programmaticaly in c# writing byte array directly file:
byte[] certificatedata = certificate.export(x509contenttype.pfx, "yourpassword"); file.writeallbytes(@"c:\yourcert.pfx", certificatedata);
and (if you're using ie 8) might want have @ answer on so:
hope helps you.
Comments
Post a Comment