How to invoke a Web Service which requires a certificate in C#?
<p>I need to communicate with a third party which has a <code>.asmx</code> web service. This web service is using https. I have the required certificate (.pfx).</p>

<p>When first trying to add this service using <code>Add Service Reference</code> in Visual Studio, I got an error. I got passed this error by importing the certificate into the <code>Personal</code> store. After I did that, I tried to add the Service Reference again and it works. So now I can create an instance of the web service. Nice.</p>

<p>But now I want to invoke the service. And when I do that I get this error:</p>

<blockquote>
  302 Notification: Digital Certificate Missing
</blockquote>

<p>So how can I tell my service to use the right certificate?</p>