Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Certificate Authentication with Service Only (No Client Cert)
    primarykey
    data
    text
    <p>I am currently using a netTcpBinding with Windows authentication (program written in C#). I will be moving away from the domain authentication (adding new clients that won't be on the domain) and am looking to set up a certificate security with username/pass authentication. From what I've been reading so far, I don't necessarily need a client certificate (which is good; I won't be able to install the service's certificate on every client). My thinking is the along the same lines as navigating to a secure website with a certificate from a trusted CA; it recognizes it's trusted and doesn't ask any questions or give any hassle, it just accepts the certificate!</p> <p>So far I have the service certificate set up (we have a wildcard cert from GoDaddy), however I can't figure out what changes I have to make to the app.config file(s) to not require the client certificate.</p> <p>Service app.config:</p> <pre><code>&lt;serviceBehaviors&gt; &lt;behavior name=""&gt; &lt;serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt; &lt;serviceCredentials&gt; &lt;clientCertificate&gt; &lt;authentication certificateValidationMode="None" revocationMode="NoCheck" /&gt; &lt;/clientCertificate&gt; &lt;serviceCertificate findValue="*.xxxxxx.com" storeLocation="LocalMachine" storeName="TrustedPublisher" x509FindType="FindBySubjectName" /&gt; &lt;/serviceCredentials&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; </code></pre> <p>Client app.config:</p> <pre><code> &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Certificate" protectionLevel="EncryptAndSign" /&gt; &lt;message clientCredentialType="UserName" /&gt; &lt;/security&gt; </code></pre> <p>I'm aware I'll have to set up a custom validator for the username portion, but I figure one step at a time. Thanks, and let me know if you need further details.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload