code_junkie

WCF Message Level Security

Nov 13th, 2011
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <security mode="Message">
  2. <message clientCredentialType="Certificate" />
  3. </security>
  4.  
  5. <behaviors >
  6. <endpointBehaviors>
  7. <behavior name="your_binding_behavior">
  8. <clientCredentials>
  9. <clientCertificate findValue="[The name of the client certificate here]"
  10. storeLocation="LocalMachine"
  11. storeName="My"
  12. x509FindType="FindBySubjectName"/>
  13. <serviceCertificate>
  14. <defaultCertificate findValue="[The name of the server certificate here]"
  15. storeLocation="LocalMachine"
  16. storeName="TrustedPeople"
  17. x509FindType="FindBySubjectName"/>
  18. <authentication certificateValidationMode="PeerOrChainTrust"/>
  19. </serviceCertificate>
  20. </clientCredentials>
  21. </behavior>
  22. </endpointBehaviors>
  23. </behaviors>
Add Comment
Please, Sign In to add comment