When I tried to connect SharePoint Online through PnP PowerShell by using the below command.
- PS: > $cred = Get-Credential
- PS: > Connect-PnPOnline –Url https:
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.
- PS: > $cred = Get-Credential
- PS: > Connect-PnPOnline –Url https:
Root cause
This issue will rise when we provide the wrong URL.
Solution
Please check the URL once again, before running the code.