none
WCF RRS feed

All replies

  • Hi SAK0,
    One endpoint commonly contains a computer port. on the server side, we bind the certificate by the below command. 

    netsh http add sslcert ipport=0.0.0.0:8000 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}

    https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-configure-a-port-with-an-ssl-certificate

    https://docs.microsoft.com/en-us/windows/desktop/http/add-sslcert
    On the client side, we usually set up the client certificate with Endpoint behavior.

    <system.serviceModel>
            <bindings>
                <wsHttpBinding>
                    <binding name="WSHttpBinding_IService1">
                        <security mode="Message">
                            <transport clientCredentialType="Windows"/>
                            <message clientCredentialType="Certificate"/>
                        </security>
                    </binding>
                </wsHttpBinding>
            </bindings>
            <client>
                <endpoint address="http://vabqia593vm:4434/Service1.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1" contract="ServiceReference1.IService1" name="WSHttpBinding_IService1" behaviorConfiguration="myendpointbehavior">
                    <identity>
                      <dns value="vabqia593VM"/>
                    </identity>
                </endpoint>
            </client>
          <behaviors>
            <endpointBehaviors>
              <behavior name="myendpointbehavior">
                <clientCredentials>
                  <clientCertificate findValue="9ee8be61d875bd6e1108c98b590386d0a489a9ca" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>
                </clientCredentials>
              </behavior>
            </endpointBehaviors>
          </behaviors>
    </system.serviceModel>

    I think we had better solve the problem in combination with your practical issue.
    Feel free to let me know if there is anything I can help with.
    Best Regards
    Abraham



    Thursday, May 23, 2019 3:01 AM
    Moderator