Problem
You may receive this error:
“You are using an invalid client certificate or an invalid server certificate”
Cause
- You encountered a TCP connection problem.
- The client computer is sending a lot of data.
- A time-out setting on the server or on another network device is set too low.
- You are experiencing an HTTPS protocol compatibility problem.
- You are using a self-signed certificate.
Resolution
Please verify the following criteria:
- Please ensure you are using the most recent version of the .NET Framework
- Disable the keep-alive feature. To do so, In the .NET Framework, set the HttpWebRequest.KeepAlive property to FALSE
- Set the ServicePointManager.MaxServicePointIdleTime property to less than the time-out value of the server keep-alive connection
- Increase the time-out value on the server computer and on other network devices
- Make sure that the client computer does not send the HTTP 100-Continue header. On top of that, ensure the client computer does not expect to receive the HTTP 100-Continue header.
- If you are using a self-signed certificate enroll one from a trusted certificate authority.
For further information regarding this problem and other possible solutions, go and look at Microsoft Article 915599