Ssl – Import an SSL Certificate into IIS 7 from the command line

command-line-interfaceiisssl

I have an SSL Certificate which has been exported into a PFX file.

How can I import this file into an IIS 7 instace from the command line?

I do not want to bind it against a specific site, just install it into the Server Certificates for IIS.

Best Answer

certutil -p <PFXPassword> -importPFX <FileLocation.pfx>

Example:

certutil -p xyz -importPFX C:\cert.pfx