c# - WCF Secured Using Membership Provider, but getting certificate error -


i've created custom membership provider , trying use secure wcf service. but, getting error:

the service certificate not provided. specify service certificate in servicecredentials.

i don't want use x509 certificate. how can working?

here service config:

<?xml version="1.0"?> 

<bindings>   <wshttpbinding>     <binding name="wshttpbinding1" maxbufferpoolsize="2147483647"       maxreceivedmessagesize="2147483647">       <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647"         maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647" />       <security mode="message">         <message clientcredentialtype="username"/>       </security>     </binding>   </wshttpbinding> </bindings> <services>   <service name="updateservice.updateservice" behaviorconfiguration="aspnetproviders">     <endpoint address="" binding="wshttpbinding" bindingconfiguration="wshttpbinding1"       contract="updateservice.iupdateservice" />   </service> </services> <behaviors>   <servicebehaviors>     <behavior name="aspnetproviders">       <servicecredentials>         <usernameauthentication usernamepasswordvalidationmode="membershipprovider" membershipprovidername="myupdatemembershipprovider"/>                   </servicecredentials>     </behavior>     <behavior>                 <!-- avoid disclosing metadata information, set value below false , remove metadata endpoint above before deployment -->       <servicemetadata httpgetenabled="true" />       <!-- receive exception details in faults debugging purposes, set value below true.  set false before deployment avoid disclosing exception information -->       <servicedebug includeexceptiondetailinfaults="false" />     </behavior>   </servicebehaviors> </behaviors> <servicehostingenvironment aspnetcompatibilityenabled="true"   multiplesitebindingsenabled="true" /> 

update

this blog post, enter link description here, says:

[when] opt in username client credential type, wcf insists service must reference service certificate contains private key.

i going host service in iis , plan use ssl certificate in web site encrypting communication. can make wcf not insist reference service certificate?

it seems microsoft really, wants me use certificate.

someone developed clear username binding situation, think may surrender , use certificate.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -