Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Certificate export to a pfx-file with certmgr.exe

1,125 views
Skip to first unread message

RedSnapper

unread,
Jan 11, 2007, 6:35:00 AM1/11/07
to
Hi everybody here.

I have a user certificate and want to export it with its private key via the
certmgr.exe tool. When I use the certmgr.exe-GUI, i can see that I have a
private key and kan export the certificate to a pfx file. When using the
command line version of certmgr.exe with the following command line:

certmgr -c -s my -put myCert.pfx

it builds the required file, but in fact it is only a normal cer file with
the pfx file extension. Dos anybody know how to export the certificate in
this form?
Tanks a lot!

Andrew Tucker [MSFT]

unread,
Jan 11, 2007, 1:43:19 PM1/11/07
to

certmgr only exports the public key in the .cer file format. It doesnt
create a PFX or include the pvt key.

To export a PFX with the pvt key use certutil. The command "certutil
-exportpfx -?" will show you the cmd line syntax.

If you dont already have certutil (it is installed by default on Server
2003 and Vista) you can get it as part of the Server 2003 Admin Pack at
http://www.microsoft.com/downloads/details.aspx?familyid=c16ae515-c8f4-47ef-a1e4-a8dcbacff8e3&displaylang=en

0 new messages