Wednesday, May 11, 2011

Exposing WCF REST Service over HTTPS

In this post, I will explain; how could we expose a WCF REST Service over secure HTPP (HTTPS)? Essentially there are three steps involved

1. Create a certificate or use a third party provided certificate
2. Configure HTTPS in IIS
3. Configure webHttpBinding to use transport level security


Create Certificate

To expose a service over HTTPS, we need to have a certificate in store. Either you can create your own X.509 certificate or use certificate provided by 3rd parties.
I am going to create my own certificate. To create X.509 certificate Open Inetmgr

clip_image001_thumb4.png?w=431&h=239

In center you will get an option of Server Certificates. Double click on that.

clip_image003_thumb4.jpg?w=563&h=145

Read more: DEBUG MODE……