title: How do I deploy a certificate to the Trusted People store in Azure?
body: <p>How can I get a public key certificate deployed to my Worker Role's <code>Trusted People</code> store?</p>
  
  <p>I'm using <code>PeerTrust</code> for WCF (self-hosted TCP services in Azure):</p>
  
  <pre><code>var creds = new ServiceCredentials();
  creds.ClientCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.PeerTrust;
  </code></pre>
  
  <p>I know how to reference the certificate both in my <code>.csdef</code> and in code. However, I don't know how to take a <code>.cer</code> file (with no private key) and actually get it into Azure so it can use it for PeerTrust. The Certificates manager in the online Portal only allow you to upload <code>.pfx</code> files (i.e. certificates with the private keys).</p>