Set-AzApplicationGatewayClientAuthConfiguration

修改 SSL 設定檔物件的客戶端驗證組態。

Syntax

Set-AzApplicationGatewayClientAuthConfiguration
   -SslProfile <PSApplicationGatewaySslProfile>
   [-VerifyClientCertIssuerDN]
   [-VerifyClientRevocation <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Set-AzApplicationGatewayClientAuthConfiguration Cmdlet 會修改 ssl 配置檔物件的用戶端驗證組態。

範例

範例 1

$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$profile  = Get-AzApplicationGatewaySslProfile -Name "SslProfile01" -ApplicationGateway $AppGw
Set-AzApplicationGatewayClientAuthConfiguration -SslProfile $profile -VerifyClientCertIssuerDN -VerifyClientRevocation OCSP

第一個命令會在名為 ResourceGroup01 的資源群組中取得名為 ApplicationGateway01 的應用程式閘道,並將它儲存在$AppGw變數中。 第二個命令會針對 $AppGw 取得名為 SslProfile01 的 ssl 配置檔,並將設定儲存在 $profile 變數中。 最後一個命令會修改儲存在 $profile 之 ssl 配置檔物件的客戶端驗證組態。

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SslProfile

ssl 配置檔

Type:PSApplicationGatewaySslProfile
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VerifyClientCertIssuerDN

確認客戶端憑證撤銷狀態。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VerifyClientRevocation

確認客戶端憑證簽發者名稱。

Type:String
Accepted values:None, OCSP
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

PSApplicationGatewaySslProfile

輸出

PSApplicationGatewaySslProfile