Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebSslProtocol Enum

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
Microsoft.PowerShell.Commands.Utility.dll
Package:
Microsoft.PowerShell.Commands.Utility v7.4.15
Package:
Microsoft.PowerShell.Commands.Utility v7.5.6
Package:
Microsoft.PowerShell.Commands.Utility v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

The valid values for the -SslProtocol parameter for Invoke-RestMethod and Invoke-WebRequest.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum WebSslProtocol
[<System.Flags>]
type WebSslProtocol = 
Public Enum WebSslProtocol
Inheritance
WebSslProtocol
Attributes

Fields

Name Value Description
Default 0

No SSL protocol will be set and the system defaults will be used.

Tls 3072

Specifies the TLS 1.0 is obsolete. Using this value now defaults to TLS 1.2.

Tls11 3072

Specifies the TLS 1.1 is obsolete. Using this value now defaults to TLS 1.2.

Tls12 3072

Specifies the TLS 1.2 security protocol. The TLS protocol is defined in IETF RFC 5246.

Tls13 12288

Specifies the TLS 1.3 security protocol. The TLS protocol is defined in IETF RFC 8446.

Applies to