2015-11-08 8 views
6

Sapete se esiste un modo per abilitare TLS1.2 in PowerShell (ad es. Per invoke-webrequest o invoke-restmethod)?Powershell - Supporto TLS1.2

Per impostazione predefinita, Powershell utilizza TLS1.0, che non è compatibile con tutti i nostri servizi Web.

/Patrik

+0

Sì, tutt'altro che ideali. Vota per questo: https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/15150051-add-support-for-tls-1-2-invoke-webrequest-invoke – KCD

risposta

10

C'era!

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

/Patrik