02 June 2014

Windows XP - Cannot validate SSL TCP connection

While I was working on my email client in .net, using a TcpClient, I tested it on a computer that ran Windows XP SP2, and it failed to connect to the IMAP servers. It always returned the error The remote certificate is invalid according to the validation procedure. It worked fine on a Windows 7 laptop.

It turned out that the certificate could not be validated on an XP SP2 machine because it doesn't have the updated cryptography API called Cryptography Next Generation or CNG.

The only solution for me was to update to XP SP3. Once installed, I ran the email client again and it all worked perfectly.

No comments:

Post a Comment