IMAP issue: The certificate couldn’t be validated because SSL negotiation wasn’t successful

I have used a registry fix to work on an IMAP issue of one of my client. The following error message I have found when I use Microsoft Remote Connectivity Analyzer

The certificate couldn’t be validated because SSL negotiation wasn’t successful

The fix:

Go to the following registry settings:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15\ServerComponentStates\ImapProxy Functional

Change the existing value from 1:0:635797425487970123

to

1:1:635797425487970123

Restart the IMAP windows services and you are done !