My site used to successfully connect to Twitter via oauth (using C#). However, since December 10th, we’ve received an error “The remote certificate is invalid according to the validation procedure.” when we trying to get twitter feeds. Can you let me know how to connect to Twitter API using SSL with .net to resolve this problem? I don’t want to change anything on the server configuration with IIS.
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.
Source Error:
Line 54: }
Line 55: authRequest.Headers.Add(“Accept-Encoding”, “gzip”);
Line 56: WebResponse authResponse = authRequest.GetResponse();
Line 57: // deserialize into an object
Line 58: TwitAuthenticateResponse twitAuthResponse;