A piece of my work around PowerShell and IIS (or usefull things I've found on the web). Mostly some reminders for myself!

Installs a .pfx file


Function Add-SSLCertificate{

Import-Module "WebAdministration" -ErrorAction Stop
$certMgr = New-Object -ComObject IIS.CertObj -ErrorAction SilentlyContinue

New-WebBinding -Name $Website -Port 443 -Protocol https -HostHeader $HostHeader


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top