invoke-webrequest The request was aborted: Could not create SSL/TLS secure channel

invoke-webrequest The request was aborted: Could not create SSL/TLS secure channel

Error –  invoke-webrequest The request was aborted: Could not create SSL/TLS secure channel

Solution –  By default powershell uses TLS 1.0 the site security requires TLS 1.2, use Net.ServicePointManager to define TSL 1.2

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://www.yubico.com/
(Visited 327 times, 1 visits today)

Add a Comment

Facebook