Set-WebSitesSslConfig

Modifies the SSL configuration settings for a host name.

Syntax

Set-WebSitesSslConfig
   [-ConnectionString <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-WebSitesSslConfig cmdlet modifies the Secure Sockets Layer (SSL) configuration settings for a host name. SSL provides a way for browsers to communicate with web servers over a secure, encrypted channel.

Examples

Example 1: Modify SSL configuration settings

PS C:\> Set-WebSitesSslConfig -HostName "HostName.Contoso.com" -OwnerName "Subscription01+DefaultWebSpace" -IpBasedMode "Ipv6" -SslMode "IpBased"

This command updates the SSL configuration for the host name HostName.Contoso.com.

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 Set-WebSitesSslConfig 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