How To Resolve “Could Not Create SSL/TLS Secure Channel” Exception For SharePoint Online

When I tried to connect SharePoint Online through PnP PowerShell by using the below command.

  1. PS: > $cred = Get-Credential  
  2. PS: > Connect-PnPOnline –Url https://<tenant>.sharpeoint.com –Credential $cred  

I have received the below error message.

Connect-PnPOnline 

The request was aborted: could not create SLL/TLS secure channel.

I have checked the code. Oh… and I had entered the URL with typo error to connect the site.

 

So, I have corrected the URL and tried to connect the site. It works fine.

  1. PS: > $cred = Get-Credential
  2. PS: > Connect-PnPOnline –Url https://<tenant>.sharepoint.com –Credential $cred  

Root cause

This issue will rise when we provide the wrong URL.

Solution

Please check the URL once again, before running the code.

 
Ebook Download
View all
Learn
View all