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

By Arun Sabale

Arun is a Solution Architect on enterprise client management with more than 14 years of experience in IT. Arun Sabale is Blogger and tech enthusiast. His main focus is on Azure cloud infra, Cloud automation with powershell, python, ARM terraform and all cloud infra services like compute, storage, network, automation, function api etc... LinkedIN - https://www.linkedin.com/in/arun-sabale/

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

Comments are closed.