I'm running 8.1.3 and am trying to connect to Exchange Online with a Powershell script, not Sync Editor.
But I'm getting the following error message:
[System.Management.Automation.RuntimeException] One or more errors occurred.
[Microsoft.Identity.Client.MsalClientException] Could not use the certificate for signing. See inner exception for details. Possible cause: this may be a known issue with apps build against .NET Desktop 4.6 or lower. Either target a higher version of .NET desktop - 4.6.1 and above, or use a different certificate type (non-CNG) or sign your own assertion as described at aka.ms/msal-net-signed-assertion.
[System.Security.Cryptography.CryptographicException] Invalid provider type specified.
This is the command:
Connect-ExchangeOnline -AppId $AppId -Certificate $Certificate -Organization $Organization
Any help would be appreciated!