title: How to send multiple (including root CA) certificates from .net client
body: <p>We have been trying to solve an issue for a while.</p>
  
  <p>We consume a web service with client certificates. </p>
  
  <p>Service owners gave us a .p12 file, it contains the client certificate and CA and private key.</p>
  
  <p>We can see the certification path from the certificate itself.</p>
  
  <p>The issue is, when we try to call the web service via SOAP UI, it works. In SOAPUI we chose the .p12 file as keystore and set the password. It works.</p>
  
  <p><a href="https://i.stack.imgur.com/V7CV9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V7CV9.png" alt="enter image description here"></a></p>
  
  <p>When we try to call the web service via our .net client application, it does not work.</p>
  
  <p>--this is how we call the web service</p>
  
  <pre><code>        channelFactory = new ChannelFactory&lt;AcquisitionAutorisationService&gt;(binding, serviceAddress);
          channelFactory.Credentials.ClientCertificate.Certificate = new X509Certificate2();
          channelFactory.Credentials.ClientCertificate.Certificate.Import(@"C:\cert\abc.p12", "password", X509KeyStorageFlags.DefaultKeySet);
  </code></pre>
  
  <p>When we monitor the packages with WireShark, we saw that, SOAPUI sends two certificates both client certificate and certificate authority in the request.</p>
  
  <p><a href="https://i.stack.imgur.com/Bedva.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bedva.png" alt="enter image description here"></a></p>
  
  <p>But .Net client sends only the client certificate not CA. So firewall of the server does not allow our calls.</p>
  
  <p><a href="https://i.stack.imgur.com/pFR7L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pFR7L.png" alt="enter image description here"></a></p>
  
  <p>So my question is how come we managed to send the CA root with our request like SOAP UI, in .Net?</p>
  
  <p>If anyone can give any idea about the issue, I would be appreciated!</p>