troubleshooting Question

WCF Transport Security Hello World Problem

Avatar of Silas2
Silas2 asked on
WCF
8 Comments1 Solution1733 ViewsLast Modified:
I'm just trying to get a hello world WCF example running over NetTcp with x509 certificate.
I've created the 2 X Self-Certifiicate on the server (its a remote machine with static IP), one for the root, the other for the Personnel using MakeCert.exe.
I ran the httpcfg command to bind SSL to a port (8001).
I exported them to my client machine.
In the Service config I just put the BaseAddress as the same port I httpcfg'd to and in serviceBehaviours:
 <serviceCredentials>
            <serviceCertificate findValue="f67f6d74e3160bfec56479402e3a26bf24d6gf55"
                                x509FindType="FindByThumbprint" />
          </serviceCredentials>
The service seems to run.
In the client I put the
 <endpointBehaviors>
          <behavior name="DoesThisGoAnywhere">
            <clientCredentials>
              <clientCertificate  storeName="My" storeLocation="LocalMachine" findValue="Dev Certification Authority"
                                  x509FindType="FindByIssuerName" />
            </clientCredentials>
          </behavior>
        </endpointBehaviors>
The error I'm getting is 'The client certificate is not provided. Specify a client certificate in ClientCredentials'
I'm trying differnet combinations of the x509findtype, thumbprint etc, but its doesn't seem to help.



ASKER CERTIFIED SOLUTION
Mike_Mozhaev

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros