View on GitHub

security-protocol-setter-powershell

This is a very simple module that sets the service protocol used by the ServicePointManager class.

SecurityProtocolSetter icon

SecurityProtocolSetter

Build Status Azure DevOps Tests Azure DevOps Coverage Azure DevOps Release - PowerShell Gallery SecurityProtocolSetter PSGallery version SecurityProtocolSetter PSGallery downloads

This is a very simple module that sets the service protocol used by the ServicePointManager class.

Motivation

It’s hard to remember the exact line of code to set the security protocol, this module simply provides a shortcut.

Installation

Install-Module SecurityProtocolSetter

Usage

Import-Module SecurityProtocolSetter

# Set security protocol to TLS 1.1
Set-SecurityProtocol Tls11

# Set security protocol to TLS 1.2
Set-SecurityProtocol Tls12

# Use the alias
setsp Tls12

# More details...
Get-Help Set-SecurityProtocol -Detailed