New-AzApplicationGatewayTrustedRootCertificate
建立應用程式閘道的受信任跟證書。
語法
New-AzApplicationGatewayTrustedRootCertificate
-Name <String>
-CertificateFile <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-AzApplicationGatewayTrustedRootCertificate Cmdlet 會為 Azure 應用程式閘道建立受信任的跟證書。
範例
範例 1
$certFilePath = ".\rootCA.cer"
$trc = New-AzApplicationGatewayTrustedRootCertificate -Name "trc1" -CertificateFile $certFilePath
此命令會建立名為 List “trc1” 的受信任跟證書,並將結果儲存在名為 $trc 的變數中。
參數
-CertificateFile
憑證 CER 檔案的路徑
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
TrustedRoot 憑證的名稱
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None
輸出
PSApplicationGatewayTrustedRootCertificate