<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx</link><description>I had to work extensively in this topic, and had to go through hundreds of blogs and articles to finally make it work. It&amp;#8217;s actually pretty simple but for someone who is new to WCF, it might give a few sleepless nights and some terrible days. This</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9192474</link><pubDate>Thu, 11 Dec 2008 00:14:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9192474</guid><dc:creator>Prashant</dc:creator><description>&lt;p&gt;Hey I got nice help from blog.&lt;/p&gt;
&lt;p&gt;but I am still endup with Exception.&lt;/p&gt;
&lt;p&gt;&amp;quot;The SSL settings for the service 'None' does not match those of the IIS 'Ssl, SslNegotiateCert, SslRequireCert, SslMapCert'&amp;quot;&lt;/p&gt;
&lt;p&gt;If i change trasport secutity from &amp;quot;trasport&amp;quot; to &amp;quot;trasportwithMessageCredential&amp;quot; It works. But again I end up with &amp;quot;Could not establish trust relationship for the SSL/TLS secure channel with authority&amp;quot;&lt;/p&gt;
&lt;p&gt;Can you tell me the cause.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9194409</link><pubDate>Thu, 11 Dec 2008 05:41:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9194409</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;For this error &amp;quot;Could not establish trust relationship for the SSL/TLS secure channel with authority&amp;quot;, check that the SSL Certificate that you have is trusted on the client.&lt;/p&gt;
&lt;p&gt;That is, the SSL certificate issuer should be in the Trusted Store of your client computer. If your SSL certificate is issued from a Trusted CA like Verisign,you shouldn't be facing this problem because all of the known Verisign issuers are already trusted.&lt;/p&gt;
&lt;p&gt;However, if you are testing with a temporary certificate which you created using makecert.exe or got from a test CA like Comodo, you will face this problem.&lt;/p&gt;
&lt;p&gt;If you still want more clarifications, let me know what kind of binding configuration you are using, so that I can help you out with the right settings.&lt;/p&gt;
&lt;p&gt;Good luck.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9197942</link><pubDate>Thu, 11 Dec 2008 22:36:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9197942</guid><dc:creator>Manpreet</dc:creator><description>&lt;p&gt;Excellent description. Keep up the good work.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9217705</link><pubDate>Mon, 15 Dec 2008 06:49:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9217705</guid><dc:creator>Anony Mouse</dc:creator><description>&lt;p&gt;Good blog. Thanks.&lt;/p&gt;
&lt;p&gt;I am a little confused about anonymous access too. Can you write a wcf service that just uses anonymous access without encryption and without windwos authentication?&lt;/p&gt;
&lt;p&gt;I know you would not want to do this, but want to know if you can.&lt;/p&gt;
&lt;p&gt;Otherwise is it safe to assume all wcf services must use certificate based authentication?&lt;/p&gt;</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9218161</link><pubDate>Mon, 15 Dec 2008 08:15:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9218161</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;You can always set the WCF service to use no authentication at all. Of course no one would want to do that, but its possible.&lt;/p&gt;
&lt;p&gt;On your second question, it is not required for all WCF services to use certificate based authentication. &lt;/p&gt;
&lt;p&gt;WCF Services must be configured for SSL client certificate authentication only if the clients are already &amp;quot;known&amp;quot; to the service. (ie., Intranet applications or when you have a defined set of customers to access the service)&lt;/p&gt;
&lt;p&gt;Internet based non-critical services generally don't use client certificates.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9290483</link><pubDate>Thu, 08 Jan 2009 00:50:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9290483</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Someone copied your post here: &lt;a rel="nofollow" target="_new" href="http://codingtkj.blogspot.com/2008/12/2-way-ssl-security-using-certificates.html"&gt;http://codingtkj.blogspot.com/2008/12/2-way-ssl-security-using-certificates.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9291392</link><pubDate>Thu, 08 Jan 2009 02:41:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9291392</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You can leave the mex endpoint uncommented if you configure it to use wsHttpBinding and the same bindingConfiguration as your service uses. &amp;nbsp;For example,&lt;/p&gt;
&lt;p&gt;&amp;lt;endpoint address=&amp;quot;mex&amp;quot; binding=&amp;quot;wsHttpsBinding&amp;quot; &lt;/p&gt;
&lt;p&gt; &amp;nbsp;name=&amp;quot;MetadataBinding&amp;quot; contract=&amp;quot;IMetadataExchange&amp;quot; bindingConfiguration=&amp;quot;CertificateWithTransport&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;For more info see:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa395212.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa395212.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(Custom Secure Metadata Endpoint)&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9441708</link><pubDate>Mon, 23 Feb 2009 22:53:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9441708</guid><dc:creator>Maxim</dc:creator><description>&lt;p&gt;Nice and useful article! &lt;/p&gt;
&lt;p&gt;But even after enabling anonymous in IIS and disabling mex, I still get errors:&lt;/p&gt;
&lt;p&gt;Service error: The HTTP request was forbidden with client authentication 'Anonymous'. Service Fault: The remote server returned an error: (403) Forbidden.&lt;/p&gt;
&lt;p&gt;What could be the reason?&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9571259</link><pubDate>Mon, 27 Apr 2009 19:44:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9571259</guid><dc:creator>Ashley Tate</dc:creator><description>&lt;p&gt;@Maxim: I ran into the same error and have documented at least one cause here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://coditate.blogspot.com/2009/04/confusing-errors-using-wcf-transport.html"&gt;http://coditate.blogspot.com/2009/04/confusing-errors-using-wcf-transport.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9572875</link><pubDate>Tue, 28 Apr 2009 06:39:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9572875</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;@Maxim : It's true that sometimes the error messages aren't very clear and helpful in troubleshooting. Just go through the settings once again and ensure that everything is right.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9609007</link><pubDate>Wed, 13 May 2009 11:50:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9609007</guid><dc:creator>meir</dc:creator><description>&lt;p&gt;great article.&lt;/p&gt;
&lt;p&gt;but when i checked the Require SSL in iis (7.0).&lt;/p&gt;
&lt;p&gt;then every time i get Internal Server Error.&lt;/p&gt;
&lt;p&gt;why?&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9609022</link><pubDate>Wed, 13 May 2009 12:09:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9609022</guid><dc:creator>meir</dc:creator><description>&lt;p&gt;i found out that if iis is configured as Require SSL, i had 2 comment the HTTP binding/endpoint swctions &amp;nbsp;in the web.config to get it to work.&lt;/p&gt;
&lt;p&gt;why?&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9633139</link><pubDate>Thu, 21 May 2009 04:06:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9633139</guid><dc:creator>Chris Mullins</dc:creator><description>&lt;p&gt;I was able to get the MEX endpoint to work using this same approach. The issues is the binding and bindingConfiguration of the endpoint. &lt;/p&gt;
&lt;p&gt;Step 1 was to create a service behavior that required SSL.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;behaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;serviceBehaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;behavior name=&amp;quot;MyName&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;serviceMetadata httpsGetEnabled=&amp;quot;true&amp;quot; httpGetEnabled=&amp;quot;false&amp;quot;/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/behavior&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/serviceBehaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;lt;/behaviors&amp;gt;&lt;/p&gt;
&lt;p&gt;Step 2 is to enable the MEX endpoint using the wsHttpBinding and proper binding configuration. In this case, the binding configuration is the same as the primary endpiong name.&lt;/p&gt;
&lt;p&gt;&amp;lt;endpoint address=&amp;quot;mex&amp;quot; binding=&amp;quot;wsHttpBinding&amp;quot; contract=&amp;quot;IMetadataExchange&amp;quot; bindingConfiguration=&amp;quot;MyBinding&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Doing this worked fine. To get to the MEX endpoint, a client cert is required - which is exactly what I wanted. &lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9633328</link><pubDate>Thu, 21 May 2009 08:00:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9633328</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;Meir &amp;gt;&amp;gt; I can't get your problem. Can you post your bindings as well?&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9716387</link><pubDate>Tue, 09 Jun 2009 19:06:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9716387</guid><dc:creator>Jaster</dc:creator><description>&lt;p&gt;Awsome Work!&lt;/p&gt;
&lt;p&gt;But i'm still expirencing some trouble. I can create an instance of the service, but i can't call any methods. i recieve an errormessage like: &amp;quot;could not establish trusted ssl/tsl channel...&amp;quot;&lt;/p&gt;
&lt;p&gt;any ideas?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jaster&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9723700</link><pubDate>Wed, 10 Jun 2009 12:02:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9723700</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;It's basically a certificate trust issue. The client machine that you are using to talk to the server does not trust the certificate that you are using on your server.&lt;/p&gt;
&lt;p&gt;Make sure the certificate's 'CN' property has the domain name.&lt;/p&gt;
&lt;p&gt;Eg., If the WCF Service URL is : &lt;a rel="nofollow" target="_new" href="https://myserver/services/service.svc"&gt;https://myserver/services/service.svc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;then, your certificate should be issued to &amp;quot;myserver&amp;quot;. i.e., you should see CN=myserver in the certificate properties.&lt;/p&gt;
&lt;p&gt;If this is also done, then install the certificate in the trusted store of the client machine. It should work.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9795413</link><pubDate>Sun, 21 Jun 2009 16:03:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9795413</guid><dc:creator>T.Chowdhury</dc:creator><description>&lt;p&gt;Very Good Article, follwoing your steps I was able to install my service using SSL. Although few of my steps somehow differ than what it has stated in the article. I will comeback to later on that.&lt;/p&gt;
&lt;p&gt;First I have few questions in code below (Configuring the client to use SSL) which certificate thumb print represents below Client or Server? My second question is how do I know what's the value of &lt;/p&gt;
&lt;p&gt;storeLocation?&lt;/p&gt;
&lt;p&gt; &amp;lt;behavior name=&amp;quot;credentialConfiguration&amp;quot;&amp;gt;&amp;lt;clientCredentials&amp;gt;&amp;lt;clientCertificate findValue=&amp;quot;99bbc6c9e6f4a6bd526bc8bb21f9c21f0716c23r&amp;quot; storeLocation=&amp;quot;CurrentUser&amp;quot; x509FindType=&amp;quot;FindByThumbprint&amp;quot; /&amp;gt; &lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9797077</link><pubDate>Mon, 22 Jun 2009 08:19:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9797077</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;Chowdhury,&lt;/p&gt;
&lt;p&gt;In the behavior, you must give the client certificate's thumbprint value.&lt;/p&gt;
&lt;p&gt;In the storeLocation attribute, give the name of the store where the certificate resides. There are multiple certificate stores on the computer and here is how you open them.&lt;/p&gt;
&lt;p&gt;On Run -&amp;gt; Type mmc and press Enter&lt;/p&gt;
&lt;p&gt;Press Ctrl +M&lt;/p&gt;
&lt;p&gt;On Add or Remove Snap-ins window, select Certificates and click Add button&lt;/p&gt;
&lt;p&gt;A new window with&lt;/p&gt;
&lt;p&gt;1. My User Account&lt;/p&gt;
&lt;p&gt;2. Service Account&lt;/p&gt;
&lt;p&gt;3. Computer Account&lt;/p&gt;
&lt;p&gt;appears&lt;/p&gt;
&lt;p&gt;If you select &amp;quot;My User Account&amp;quot;, you will be able to see all certificates accessible to that particular windows user account.&lt;/p&gt;
&lt;p&gt;If you select Service Account, you will be able to see all certificates accessible to that particular windows service that you will eventually choose in the next window.&lt;/p&gt;
&lt;p&gt;Sample theory applies to the third option as well.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9851681</link><pubDate>Wed, 29 Jul 2009 06:44:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9851681</guid><dc:creator>Elena Neroslavskaya</dc:creator><description>&lt;p&gt;Thank you for the great post. The only problem we have noticed that once Anonymous is enabled on IIS, ANY certificate issued by CA that is in trusted authorities store is granted access.&lt;/p&gt;
&lt;p&gt;Is there a possibility to restrict access to just one specific Cert?&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9855434</link><pubDate>Sun, 02 Aug 2009 06:09:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9855434</guid><dc:creator>T.Chowdhury</dc:creator><description>&lt;p&gt;Hi, here are some good news and bad news. Good news is following your steps, I was able to install my service using SSL as well as consume the service from a client (console application). No issue.&lt;/p&gt;
&lt;p&gt;The app config file used for the client console application shown as below&lt;/p&gt;
&lt;p&gt; &amp;lt;system.serviceModel&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bindings&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;wsHttpBinding&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;binding name=&amp;quot;EmailServiceHttpsEndpoint&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;security mode=&amp;quot;Transport&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;transport clientCredentialType=&amp;quot;Certificate&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/security&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/binding&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/wsHttpBinding&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/bindings&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;client&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;endpoint address=&amp;quot;&lt;a rel="nofollow" target="_new" href="https://tnsiit.tnsinsideit.local/EmailService/EmailService.svc&amp;quot;"&gt;https://tnsiit.tnsinsideit.local/EmailService/EmailService.svc&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;behaviorConfiguration=&amp;quot;credentialConfiguration&amp;quot; binding=&amp;quot;wsHttpBinding&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bindingConfiguration=&amp;quot;EmailServiceHttpsEndpoint&amp;quot; contract=&amp;quot;EmailClient.EmailService.IEmailService&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name=&amp;quot;EmailServiceHttpsEndpoint&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/client&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;behaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;endpointBehaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;behavior name=&amp;quot;credentialConfiguration&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;clientCredentials&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;clientCertificate findValue=&amp;quot;c72e3caa4ae63e20791f10bc6ab99ef24a2cc34d&amp;quot; &amp;nbsp; storeLocation=&amp;quot;CurrentUser&amp;quot; &amp;nbsp;x509FindType=&amp;quot;FindByThumbprint&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/clientCredentials&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/behavior&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/endpointBehaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/behaviors&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/system.serviceModel&amp;gt;&lt;/p&gt;
&lt;p&gt;The bad news is after that I have created an ASP.net application, trying to consume the same service. I have cut &amp;amp; paste the above configuration into ASP.net web config, we I was testing the above service via aspx page, I'm getting this error&lt;/p&gt;
&lt;p&gt;Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindByThumbprint', FindValue 'c72e3caa4ae63e20791f10bc6ab99ef24a2cc34d'.&lt;/p&gt;
&lt;p&gt;Do I have to do something different for ASP .NEt &amp;nbsp;application.&lt;/p&gt;
&lt;p&gt;Any help will be really appreciable.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9858687</link><pubDate>Thu, 06 Aug 2009 07:34:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9858687</guid><dc:creator>erosen03</dc:creator><description>&lt;p&gt;Thanks for a great post. I had a similar issue trying to figure out why a particular WCF service kept reporting that it needed anonymous authentication enabled in IIS, even after I corrected the items in the WCF service's web.config file. It turned out for me that even though web.config changes are supposed to be applied immediately after the file is saved, I had to issue an IISRESET command in order for the error message about anonymous access to go away.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9865380</link><pubDate>Wed, 12 Aug 2009 05:37:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865380</guid><dc:creator>Sahil Malik</dc:creator><description>&lt;p&gt;Hi Imaya,&lt;/p&gt;
&lt;p&gt;This is a good article, and you being the original source, it has been shamelessly copied all over the internet by people claiming it as their own. Anyway, credit goes to you for the original.&lt;/p&gt;
&lt;p&gt;I wanted to point out a couple of things though.&lt;/p&gt;
&lt;p&gt;a) Setting anonymous is not necessary. You've had to set anonymous over there because your service settings are not properly translating the certificate identity into an identity that the service will understand, i.e. an AD identity for instance. Try doing the mapping using serviceBehavior/service-clientCredentials .. and you'll see what I'm saying.&lt;/p&gt;
&lt;p&gt;b) Metadata exchange does not need to be turned off either. You simply need to do httpsEnabled - true, or enable metadata over HTTPS as one other comment mentioned above.&lt;/p&gt;
&lt;p&gt;Great post otherwise. Love it.&lt;/p&gt;
&lt;p&gt;Sahil&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9865520</link><pubDate>Wed, 12 Aug 2009 07:27:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865520</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;Thanks Sahil.&lt;/p&gt;
&lt;p&gt;I appreciate your clarification for the issues mentioned.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9867195</link><pubDate>Thu, 13 Aug 2009 00:13:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9867195</guid><dc:creator>Manav</dc:creator><description>&lt;p&gt;Hi Imaya,&lt;/p&gt;
&lt;p&gt;Thanks for the great post. I exactly had the same issues, and your article pulled me out. My only grievence is I found you article when I had struggled thru and fixed almost all the issues, and was stuck at the last one - related to commenting the mex endpoint. &lt;/p&gt;
&lt;p&gt;Still a great post. Keep up the good work.&lt;/p&gt;
&lt;p&gt;Manav&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9891914</link><pubDate>Sun, 06 Sep 2009 13:44:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9891914</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Hi Imaya,thanks for your great post.&lt;/p&gt;
&lt;p&gt;By the way,what do you mean by terms of &amp;quot;2 way SSL security?&amp;quot;&lt;/p&gt;
&lt;p&gt;what is the typical usage scenario for it?&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9892086</link><pubDate>Mon, 07 Sep 2009 09:00:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9892086</guid><dc:creator>imayak</dc:creator><description>&lt;p&gt;@Alex : It's just that the client will also have a SSL certificate so the server can authenticate the client. So, I call it '2 Way'.&lt;/p&gt;
</description></item><item><title>re: WCF – 2 Way SSL Security using Certificates</title><link>http://blogs.msdn.com/imayak/archive/2008/09/12/wcf-2-way-ssl-security-using-certificates.aspx#9909560</link><pubDate>Tue, 20 Oct 2009 00:26:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9909560</guid><dc:creator>Chloé</dc:creator><description>&lt;p&gt;hi imayak,&lt;/p&gt;
&lt;p&gt;thank you for taking your time and help us all. i have a problem =)&lt;/p&gt;
&lt;p&gt;before i found your post, i already figured out how to set up https on my dev machine running xp as well as my QA 2003 server with self certificate.&lt;/p&gt;
&lt;p&gt;my project (website) is a distribution website, therefore, i cannot use static url in the web.config or in the clientconfig. i find the Uri and create the proxy from there. &lt;/p&gt;
&lt;p&gt;everything works great! with two end points in the web.config file.&lt;/p&gt;
&lt;p&gt;1 - basicHttpBinding&lt;/p&gt;
&lt;p&gt;2 - wsHttpBinding&lt;/p&gt;
&lt;p&gt;hitting the wsdl with http or https works, however, when i set SSL Required on, i can't get to the wsdl at all. if i remove basicHttpBinding section or wsHttpBinding and remove httpGetEnabled (basicHttpBinding) or httpsGetEnabled (wsHttpBinding) out of the serviceMetadata, then it works.&lt;/p&gt;
&lt;p&gt;Question 1) Any thought?&lt;/p&gt;
&lt;p&gt;Question 2) do i need those end points in the web.config? Can i do it dynamically when i about to call WCF?&lt;/p&gt;
&lt;p&gt;I'm new to WCF as well, so if you or anyone knows how to create a dynamic end point w/out any end point in the web.config, please feel free to give me info. &lt;/p&gt;
&lt;p&gt;thank you very much.&lt;/p&gt;
&lt;p&gt;Chlo&amp;#233;&lt;/p&gt;
</description></item></channel></rss>