When scripting different solutions, i prefere to have Powershell do most of the heavy lifting:-)
Adding a CER certificate to Trusted Root Certificate store.
Code:
CERTUTIL -addstore -enterprise -f -v root C:\MyCert.cer
Adding a PFX certificate to Personal Certificate store.
Code:
certutil –f –p "Password" –importpfx C:\myCert.pfx
Advertisements