The below article shows how to enable SSL for self-hosted WCF service.
If you have IIS installed on the same server where you host WCF service, you can follow the below steps to use IIS for binding SSL certificate with WCF port.
Note that the httpsGetEnabled
is set to true
. This means that even your mex is encrypted, nifty! Also note that chrise
which is the hostname in this case MUST have a corresponding certificate, or no dice.
I'm using the basic HTTP binding. You could do it with wsHTTP as well, but what's the point of getting encrypted messages if your entire transport is encrypted anyways?
Note that clientCredentialType
is set to none, this is just to simplify the whole solution, otherwise we get into a whole other article.
The client looks like this:
Awesome article.
August 27, 2021 at 4:51 amExcellent blog you've got here.. It's difficult to find quality writing
November 8, 2021 at 8:12 amlike yours these days. I truly appreciate individuals like
you! Take care!!