Sets an SSL certificate binding for a given IP/port.
Set-SslCertificateBinding [[-IPAddress] <IPAddress>] [[-Port] <UInt16>] [-ApplicationID] <Guid> [-Thumbprint] <String> [-PassThru] [-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.
Beginning with Carbon 2.0, returns a Carbon.Certificates.SslCertificateBinding
object for the binding that was set.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
IPAddress | IPAddress | The IP address for the binding. Defaults to all IP addresses. |
false | false | 0.0.0.0 |
Port | UInt16 | The port for the binding. Defaults to 443. |
false | false | 443 |
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 | |
PassThru | SwitchParameter | Return a |
false | false | False |
WhatIf | SwitchParameter | false | false | ||
Confirm | SwitchParameter | false | false | ||
CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters . |
Carbon.Certificates.SslCertificateBinding.
Set-SslCertificateBinding -IPAddress 43.27.89.54 -Port 443 -ApplicationID 88d1f8da-aeb5-40a2-a5e5-0e6107825df7 -Thumbprint 4789073458907345907434789073458907345907
Configures the computer to use the 478907345890734590743 certificate on IP 43.27.89.54, port 443.
Set-SslCertificateBinding -ApplicationID 88d1f8da-aeb5-40a2-a5e5-0e6107825df7 -Thumbprint 4789073458907345907434789073458907345907
Configures the compute to use the 478907345890734590743 certificate as the default certificate on all IP addresses, port 443.