Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8459
  • Last Modified:

The remote certificate is invalid according to the validation procedure.

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

Running SSL on WebServer and Appserver. Communication between the two has been verified as working however when running an asp.net 2.0 application we receive the above error, anyone assist ?
0
Prashant0906
Asked:
Prashant0906
  • 3
  • 3
  • 2
1 Solution
 
NeotkCommented:
Try this.
In your web.config file:

<configuration><system.web>

<httpRuntime maxRequestLength="8000">

</configuration</system.web>


Regards, Rodrigo Leote.
0
 
NeotkCommented:
Sorry, posted in the wrong question.
0
 
nauman_ahmedCommented:
Is the certificate still valid? Double click the CER file and see if you any error is displayed in the certificate description.

--Nauman.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Prashant0906Author Commented:
Certificate is valid and still in date
0
 
nauman_ahmedCommented:
If the certificate is issued by a local certificate server, that might be the issue. Otherwise, you can try fixing it using the following code:

URL: http://blogs.msdn.com/hongmeig/archive/2007/05/01/wcf-exception-the-remote-certificate-is-invalid-according-to-the-validation-procedure.aspx

            ServicePointManager.ServerCertificateValidationCallback = RemoteCertificateValidationCallback;

 

 

   public static bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)

        {

            // do some validation here...

        }

--Nauman.
0
 
Prashant0906Author Commented:
This isn't a coding issue, the code has been verified and works perfectly. It's an installation or certificate issue which I unfortunately have no clue with. At a client site trying to resolve an issue...
0
 
nauman_ahmedCommented:
Parshant:

Where does the certificate reside? Is it on the client or on the serve?

--Nauman.
0
 
Prashant0906Author Commented:
Certifiicate is on the server.

We have 2 servers an Application Server and a WebServer. Each has a certificate. The problem occurs when the certificate is passed to the application server from the web server. This I have gathered by stopping IIS on the application server which then returns a different error, turn it back on and the server returns the Remote certificate issue.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now