Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell - TLS1.2 support

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

By default it looks like Powershell uses TLS1.0, which is not compatible with all our web services.

/Patrik

like image 933
PatrikJ Avatar asked Nov 08 '15 12:11

PatrikJ


1 Answers

There was!

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

/Patrik

like image 107
PatrikJ Avatar answered Nov 16 '22 14:11

PatrikJ