Test-SslCertificateBinding

Tests if an SSL certificate binding exists.

Syntax

Test-SslCertificateBinding [[-IPAddress] <IPAddress>] [[-Port] <UInt16>] [<CommonParameters>]

Description

SSL certificates are bound to IP addresses and ports. This function tests if one exists on a given IP address/port.

Parameters

Name Type Description Required? Pipeline Input Default Value
IPAddress IPAddress

The IP address to test for an SSL certificate.

false false
Port UInt16

The port to test for an SSL certificate.

false false 0

EXAMPLE 1

Test-SslCertificateBinding -Port 443

Tests if there is a default SSL certificate bound to all a machine's IP addresses on port 443.

EXAMPLE 2

Test-SslCertificateBinding -IPAddress 10.0.1.1 -Port 443

Tests if there is an SSL certificate bound to IP address 10.0.1.1 on port 443.

EXAMPLE 3

Test-SslCertificateBinding

Tests if there are any SSL certificates bound to any IP address/port on the machine.