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!
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