Configure SSL binding with netsh

SSL

In windows, when a self hosted service runs WCF, to configure it to work with SSL - we need to manually set it through the netsh tool like this:


netsh http add sslcert ipport=0.0.0.0:6655 certhash=XXXXXX appid={00000000-0000-0000-0000-000000000000} verifyclientcertrevocation=disable clientcertnegotiation=enable

In the example above, the SSL is configured on port 6655, the certhash should be the thumbprint of the certificate in the local machine store, and it also specifies that it requires client certificate authentication.

Also we can see current configuration parameters by running this command:

netsh http show sslcert

Post a Comment

Previous Post Next Post