Using inetmgr, I made a pfx file containing the public and private keys for a certificate. Now I'm trying to install the pfx into another machine from the command prompt with
certutil -p <password> -importpfx root <path_to_pfxfile>
Unfortunately, this is only importing the public key. If I use the certmgr snap-in I can import both keys, but I need to be able to automate this. Can anybody help?
Import-PfxCertificate
PowerShell command will probably do what you want. I'm not in a position to test this right now, but the documentation is here: technet.microsoft.com/en-us/library/hh848625(v=wps.630).aspx