title: Azure https with pfx file
body: <p>I am trying to create an <em>https</em> endpoint for my azure service.  I was given an <em>p7b</em> file that I converted into a <em>cer</em> file.  From the <em>cer</em> I was able to convert with a few lines of c# to a <em>pfx</em>.</p>
  
  <pre><code>var cert = new X509Certificate2(@"certpath", "
  var bytes = cert.Export(X509ContentType.Pfx, "password");
  File.WriteAllBytes(@"certpath\cert.pfx", bytes);
  </code></pre>
  
  <p>Now when I upload the cert to azure everything seems ok, I copy the thumbprint and try to upgrade with the new thumbprint as part of the end point and I get an error in azure.</p>
  
  <blockquote>
    <p>Certificate with thumbprint 3FA490D1D4957942CD2ED545F6E823D0008796EA2 associated with HTTPS input endpoint "endpointName" does not contain private key.</p>
  </blockquote>