Powershell Support - TLS1.2

Do you know if there is a way to enable TLS1.2 in powershell (i.e. for invoke-webrequest or invoke-restmethod)?

By default, Powershell seems to be using TLS1.0, which is not compatible with all of our web services.

/ Patrik

+6
source share
1 answer

Was!

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

/ Patrik

+10
source

All Articles