New-WebSitesSslBinding
Creates an SSL binding for a website.
Syntax
New-WebSitesSslBinding
[-ConnectionString <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-WebSitesSslBinding cmdlet creates a Secure Sockets Layer (SSL) binding. SSL provides a way for browsers to communicate with web servers over a secure, encrypted channel; this is done by using SSL certificates. An SSL binding associates an SSL certificate with entities such as a website or TCP/IP port.
Examples
Example 1: Bind a certificate
PS C:\> New-WebSitesSslBinding -FrontEndName "FESERVER01" -IPAddress "FD4A:29CD:184F:3A2C:D07A:489A:1EC4:E2CD" -Port 8443 -HostName "Site01.Contoso.com"
This command binds a certificate for the host name Site01.Contoso.com to the IP address FD4A:29CD:184F:3A2C:D07A:489A:1EC4:E2CD and port 8443 found on the front end server named FESERVER01.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionString
Specifies a connection string for a hosting database. Connection strings contain information about a data source and how to connect to it; this information includes such things as the server and database name, and the name and password of the user account making the connection. For example:
-ConnectionString "Server=tcp:contosodb.database.windows.net;Database=Personel;User ID=admin@contoso.com;Password=p@ssw0rd;Trusted_Connection=False;Encrypt=True;"
If you do not specify this parameter New-WebSitesSslBinding uses the default instance of the hosting database.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |