Implementing Transport Message Security with WCF 4.0 and VS 2010 RC

 I hope most of you have downloaded VS 2010 RC by now and have started exploring its new features. I have received feedback in the past where developers have faced challenges in implementing security for WCF services in their applications. One of the nice features of WCF Security is that we can configure it using a custom user name – password validation mechanism.  In this two part series, I will explain how to create a certificate, create a WCF service configured to use this certificate and host the WCF service on IIS 7.5 with SSL. In this article, I will show you how to create a certificate and create a WCF service which uses this certificate. In this next part of this article, I will demonstrate how to host this WCF Service on IIS 7.5 with SSL.I am developing this solution on Windows 7 Enterprise edition. Creating X509 Certificate Step 1: Since we need to use SSL for transport security, a certificate must be created and configured with the WCF service. To create a certificate, follow the steps shown below:i)             Open command prompt of VS2010 and write the following command for creating a certificate:makecert.exe -sr LocalMachine -ss My -a sha1 -n CN







View the Original article