0

I've a middle tier written in C# which consume a Soap endpoint provided by a client. TLS 1.2 is mandatory , So I've this line in my code

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

Also I've a P12 file which i read by this way

DeviceClient.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2(ConfigurationManager.AppSettings["serverpath"].ToString(),ConfigurationManager.AppSettings["pwd"].ToString());

I'm able to get a response using sequential call. But when simulating a load test using soap ui, for some requests, I get the following error message:

Server certificate is not configured properly with HTTP.SYS.This could also be caused by a mismatch of the security binding between the client and the server.

Any ideas? Regards

Oumar Diarra
  • 355
  • 4
  • 16
  • Possible duplicate of [WCF Error "This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case"](https://stackoverflow.com/questions/2013880/wcf-error-this-could-be-due-to-the-fact-that-the-server-certificate-is-not-conf) – jazb Aug 01 '19 at 08:07
  • 1
    Hi John, I've been on the link, the question is different as for my case some requests work and for others i get the error. And it only happens with a load test. Thanks by the way – Oumar Diarra Aug 01 '19 at 08:14

0 Answers0