Unable to connect to ExchangeOnline macOS

Brass Contributor

When attempting to connect to ExchangeOnline via powershell on macOS i get the following error. 

 

Exception: Connecting to remote server outlook.office365.com failed with the following

error message : error:1416F086:SSL

routines:tls_process_server_certificate:certificate verify failed

 

Managed to resolve my WSMan errors and then get this far. Tried in both stable and preview releases. Running macOS BigSur on M1.

 

Any ideas?

 

2 Replies
For PowerShell on Windows I would say "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12" but I'm not sure if that's a thing on macOS :)
Did this make any difference?