共用方式為


Add-AzureApplicationGatewaySslCertificate

將 SSL 憑證新增至應用程式閘道。

注意

本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組

Syntax

Add-AzureApplicationGatewaySslCertificate
   -Name <String>
   -CertificateName <String>
   -Password <String>
   -CertificateFile <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

Add-AzureApplicationGatewaySslCertificate Cmdlet 會將安全通訊端層 (SSL) 憑證新增至 Azure 應用程式閘道。

範例

範例 1:新增 SSL 憑證

PS C:\> Add-AzureApplicationGatewaySslCertificate -Name "ApplicationGateway08" -CertificateName "SslCertificate13" -Password "password" -CertificateFile "c:\Certs\sslCertificate.pfx"

此命令會將名為 SslCertificate13 的 SSL 憑證新增至名為 ApplicationGateway08 的應用程式閘道。 命令會指定憑證檔案的路徑和憑證的密碼。

參數

-CertificateFile

指定 SSL 憑證檔案的路徑。 這個 Cmdlet 會在此參數指定的檔案中新增憑證。

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

-CertificateName

指定 SSL 憑證的名稱。 此 Cmdlet 會新增此參數所指定的憑證。

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

-Name

指定此 Cmdlet 新增 SSL 憑證的應用程式閘道名稱。

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

-Password

指定此 Cmdlet 所新增之 SSL 憑證的密碼。

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

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。

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

輸入

String

輸出

Microsoft.WindowsAzure.Management.ApplicationGateway.Models.ApplicationGatewayOperationResponse