Archive for the ‘Certificates’ Category

When scripting different solutions, i prefere to have Powershell do most of the heavy lifting:-)

Adding a CER certificate to Trusted Root Certificate store.

CERTUTIL -addstore -enterprise -f -v root C:\MyCert.cer

Adding a PFX certificate to Personal Certificate store.

certutil –f –p "Password" –importpfx C:\myCert.pfx

When running a test environment and needing a certificate, one will not always have a CA (Certificate Authority lying around).  In Windows Server 2012 and Windows 8, there is a PowerShell command to create a multiple Subject named certificate: