Export-TlsSessionTicketKey

Export-TlsSessionTicketKey

Exports a TLS session ticket key.

Syntaxe

Parameter Set: Default
Export-TlsSessionTicketKey [-Password] <SecureString> [[-Path] <String> ] [-ServiceAccountName] <NTAccount> [-Confirm] [-WhatIf] [ <CommonParameters>]

Description détaillée

The Export-TlsSessionTicketKey cmdlet exports the administrator managed Transport Layer Security (TLS) session ticket key for a service account.

TLS creates a session ticket by using the Transport Layer Security (TLS) Session Resumption without Server-Side State mechanism [RFC 5077]. This mechanism helps to improve the performance of TLS. The TLS server uses this mechanism to create a key to encrypt a session ticket. The client can later use the encrypted session ticket to resume communication with the TLS server. Otherwise, the client must restart the communication by acquiring of new session ticket. For more information, see RFC 5077, "Transport Layer Security (TLS) Session Resumption without Server-Side State."

Paramètres

-Password<SecureString>

Specifies the password, as a secure string, for the key.

Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue, ByPropertyName)

Accepter les caractères génériques ?

false

-Path<String>

Specifies the path of the configuration file for the TLS server.

Alias

FullName

Obligatoire ?

false

Position ?

2

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-ServiceAccountName<NTAccount>

Specifies the name of a service account. The cmdlet exports the configuration of the TLS session ticket key for the service account.

Alias

none

Obligatoire ?

true

Position ?

3

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-Confirm

Votre confirmation sera requise avant l’exécution de l’applet de commande.

Obligatoire ?

false

Position ?

named

Valeur par défaut

false

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-WhatIf

Présente les conséquences éventuelles de l’exécution de l’applet de commande. L’applet de commande n’est pas exécutée.

Obligatoire ?

false

Position ?

named

Valeur par défaut

false

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.

Sorties

Le type de sortie est le type des objets émis par l’applet de commande.

Exemples

Example 1: Export a TLS session ticket key

This example exports the key for a TLS session ticket for a service account.

The first command prompts the user to enter a password. The command masks the password that the user types at the prompt. The command stores the password in the $Password variable.

The second command exports the session ticket key for the service account named Networkservice from the configuration file on the TLS server. The command specifies the path for the configuration file on the TLS server, and specifies that the TLS session use the password stored in $Password to access the configuration file.

PS C:\> $Password = read-host -assecurestring
PS C:\> Export-TlsSessionTicketKey -Path "C:\keyconfig\tlssessionticketKey.config" -Password $Password -ServiceAccountName "Networkservice"

Rubriques connexes

Enable-TlsSessionTicketKey

New-TlsSessionTicketKey

Disable-TlsSessionTicketKey