CheckIfSslBindingExists


CheckIfSslBindingExists
    [-webSite] <String>
    [-hostHeader] <String>
    [-ipAddress] <String> = "*"

Description

Checks if there is a binding with https protocol with the provided host header and optional IP Address on a website.

Example


if(CheckIfSslBindingExists -webSite "MySite" -hostHeader "site.example.com")
{
    Write-Host "SSL binding exists"
}