New-AzApplicationGatewaySslProfile

Crée un profil SSL pour une passerelle d’application.

Syntax

New-AzApplicationGatewaySslProfile
   -Name <String>
   [-SslPolicy <PSApplicationGatewaySslPolicy>]
   [-ClientAuthConfiguration <PSApplicationGatewayClientAuthConfiguration>]
   [-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

L’applet de commande New-AzApplicationGatewaySslProfile crée un profil SSL pour une passerelle d’application. Le profil ssl est configuré sur les écouteurs HTTPS.

Exemples

Exemple 1

$sslPolicy = New-AzApplicationGatewaySslPolicy -PolicyType Custom -MinProtocolVersion TLSv1_1 -CipherSuite "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_GCM_SHA256"
$trustedClient01 = New-AzApplicationGatewayTrustedClientCertificate -Name "ClientCert01" -CertificateFile "C:\clientCAChain1.cer"
$profile = New-AzApplicationGatewaySslProfile -Name $sslProfile01Name -SslPolicy $sslPolicy -TrustedClientCertificates $trustedClient01

La première commande crée une stratégie SSL et la stocke dans la variable $sslPolicy. La deuxième commande crée une chaîne de certificats d’autorité de certification cliente approuvée et les stocke dans la variable $ClientCert 01. La troisième commande crée un profil SSL avec la stratégie SSL et la chaîne de certificats d’autorité de certification cliente approuvée.

Paramètres

-ClientAuthConfiguration

Paramètres de configuration de l’authentification client

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

-DefaultProfile

Informations d’identification, compte, locataire et abonnement utilisés pour la communication avec Azure.

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

-Name

Nom du profil SSL

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

-SslPolicy

Stratégie SSL

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

-TrustedClientCertificates

Chaînes de certificats d’autorité de certification client approuvées

Type:PSApplicationGatewayTrustedClientCertificate[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Entrées

None

Sorties

PSApplicationGatewaySslProfile