2015-11-08 47 views
6

你知道是否有方法在PowerShell中啓用TLS1.2(例如,用於invoke-webrequest或invoke-restmethod)?Powershell - TLS1.2支持

默認情況下,它看起來像Powershell使用TLS1.0,它不與我們所有的Web服務兼容。

/Patrik

+0

是的,較不理想。投票給它:https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/15150051-add-support-for-tls-1-2-invoke-webrequest-invoke – KCD

回答

10

有!

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

/帕特里克