Sets an SSL certificate binding for a given IP/port.
Set-SslCertificateBinding [-IPPort] <String> [-ApplicationID] <Guid> [-Thumbprint] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Uses the netsh command line application to set the certificate for an IP address and port. If a binding already exists for the IP/port, it is removed, and the new binding is created. No validation is performed on the thumbprint.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
IPPort | String | The IP address and port to bind the SSL certificate to. Should be in the form IP:port.
Use 0.0.0.0 to bind to all IP addresses. For example formats, run
netsh http delete sslcert /? |
true | false | |
ApplicationID | Guid | A unique ID representing the application using the binding. Create your own. | true | false | |
Thumbprint | String | The thumbprint of the certificate to use. The certificate must be installed. | true | false | |
WhatIf | SwitchParameter | false | false | ||
Confirm | SwitchParameter | false | false | ||
CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters . |
Set-SslCertificateBinding -IPPort 43.27.89.54:443 -ApplicationID 88d1f8da-aeb5-40a2-a5e5-0e6107825df7 -Thumbprint 478907345890734590743
Configures the computer to use the 478907345890734590743 certificate on IP 43.27.89.54, port 443.
Set-SslCertificateBinding -IPPort 0.0.0.0:443 -ApplicationID 88d1f8da-aeb5-40a2-a5e5-0e6107825df7 -Thumbprint 478907345890734590743
Configures the compute to use the 478907345890734590743 certificate as the default certificate on all IP addresses, port 443.