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

Powershell Website

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 50 times, 1 visits today)

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

Comments are closed.