I have an ASP.NET C# web application which is hosted on GoDaddy (.NET 3.5, IIS 6) and have recently started getting the following error when attempting to connect via a WebRequest:
System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure
The code is as follows (pretty much straight from the samples):
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create("https://test.authorize.net/gateway/transact.dll");
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";
myWriter = new StreamWriter(objRequest.GetRequestStream());
At some point this was working. What can cause the application to start throwing this error?
10-24-2010 08:33 PM
Elaine,
You have expired certificates on your end!!! Just take a look:
https://www.ssllabs.com/ssltest/analyze.html?d=api.authorize.net
09-23-2024 08:24 AM