securing a wcf with https

I hosted a WCF .svc file in IIS 6.0 under a virtual directory secured with https. When requesting the wsdl through my browser I get a http 400 error. Here's a chunk of my web.config:

<system.serviceModel>
<bindings>  
    <basicHttpBinding>
          <binding name="TransportSecurity">
              <security mode="TransportWithMessageCredential">
                  <message clientCredentialType="Certificate"/>
              </security>
          </binding>     
  </basicHttpBinding>     
</bindings>
<services>
  <service name="AuthWorkStation_Extranet.App_Code.AwsService" behaviorConfiguration="ServiceBehavior">       
    <endpoint name="" address="https://extlpo01.srr.fr/Sphinx/Service.svc" binding="basicHttpBinding" bindingConfiguration="TransportSecurity" contract="AuthWorkStation_Extranet.App_Code.IAwsService" />
    <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="ServiceBehavior">
      <serviceCredentials>
         <serviceCertificate storeName="Root" findValue="CA_SRR_DISTRIB" x509FindType="FindBySubjectName" />
      </serviceCredentials> 
      <serviceMetadata httpsGetEnabled="True" />
      <serviceDebug includeExceptionDetailInFaults="True"/>
    </behavior>
  </serviceBehaviors>
</behaviors>

anyone knows what's wrong with my setup ?

Answers


If you just want HTTPS, you need to update your web.config. Change the following:

<bindings>   
  <basicHttpBinding> 
    <binding name="TransportSecurity"> 
      <security mode="TransportWithMessageCredential"> 
        <message clientCredentialType="Certificate"/> 
      </security> 
    </binding>      
  </basicHttpBinding>      
</bindings>

To:

<bindings>   
  <basicHttpBinding> 
    <binding name="TransportSecurity"> 
      <security mode="Transport"> 
        <transport clientCredentialType="None"/> 
      </security> 
    </binding>      
  </basicHttpBinding>      
</bindings>

Need Your Help

CSV File Imports in .Net

c# vb.net file csv import

I realize this is a newbie question, but I'm looking for a simple solution - it seems like there should be one.

search for none case sensitive in dataset

ruby-on-rails ruby ruby-on-rails-3

dataset = dataset.where(:headline.like("%" + headline + "%")) if headline.present?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.