Trying to connect to Exchange from CS machine using Powershell command, the error message below was displayed, the same error message from E2010PS log file
Below the Powershell command, from Identity Manager documentation (Agentless), to test the communication with Exchange
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://{Exchange Server Name}/PowerShell/ -Authentication Basic -Credential $UserCredential -SessionOption $so
Below the error in the E2010PS log
-----------------------
Connecting to remote server failed with the following error message : The server certificate on the destination computer (XXXXXXX:443) has the following errors:
Encountered an internal error in the SSL library. For more information, see the about_Remote_Troubleshooting Help topic.
-----------------------
Identity Manager 14.x
The root cause was some Microsoft patch applied on the Windows machine which changed some registry keys
In the Event Viewer (CS machine) we have the following error message after running the Powershell command (System Even Viewer)
---------------
A fatal error occurred while creating a TLS client credential. The internal error state is 10013.
---------------
The solution was to change the registry key mentioned in the link below
https://answers.microsoft.com/en-us/windows/forum/all/a-fatal-error-occurred-while-creating-a-tls-client/d7ffc963-ffab-4a34-97c8-7a321be6ed0c
For TLS1.0, TLS1.1, and TLS1.2
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client
Create a DWORD named DisabledByDefault with a value of 0
Create a DWORD named Enabled with a value of 1
After that, the Powershell command ran without errors and no issues to create Exchange Mailbox from Identity Manager