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/

, , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *