cancel
Showing results for 
Search instead for 
Did you mean: 

"The remote certificate is invalid according to the validation procedure" error

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?

 

cnpdev9731
Member
10 REPLIES 10

Elaine,
You have expired certificates on your end!!!  Just take a look:
https://www.ssllabs.com/ssltest/analyze.html?d=api.authorize.net