Veda99817 Veda99817 - 1 month ago 16
C# Question

Twitter Login - The remote certificate is invalid according to the validation procedure

I am developing an application that uses Facebook and Twitter login as one of the ways to register an account and a few days ago it just suddenly stopped working.
It uses OAuth as the authentication method.
I've checked the keys and they haven't changed, has anyone had experience with this?
I'm now getting this error:

The remote certificate is invalid according to the validation procedure.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Answer

Apologies for posting without enough information. But I have reviewed the stack trace and in the method that calls the Token and the TokenSecret from twitters API, the token was actually Null. Once I fixed this by pointing to the token location, it fixed this issue.