title: Optionally accept client certificates in a self-hosted WCF service
body: <p>I'd like to have a single SSL endpoint in my self-hosted WCF service that can accept requests with HTTP basic auth credentials or client certificate credentials.</p>
  
  <p>For IIS hosted services, IIS differentiates between "Accepts client certificates" and "Requires client certificates".  </p>
  
  <p>WCF's <code>WebHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;</code> appears to be the analog of the "requires certificates" setting in IIS.</p>
  
  <p>Is there a way to configure a WCF self-hosted service to accept client certificate credentials but not require them from every client?  Is there a WCF analog of IIS "Accepts client certificates" for self-hosted WCF services?</p>