Transport Security

patterns & practices Developer Center

How to: Use Transport Security

Use the <Security mode> attribute to configure transport security on your binding. The following example shows wsHttpBinding configured to use transport security:

    <binding name="wsHttpEndpointBinding">
      <security mode="Transport">

Transport security is available on all of the bindings except for wsDualHttpBinding.

Additional Resources

How to: Use Secure Conversations in WCF

Secure conversations are turned on by default for all bindings that support Web Services Security (WS-Security). This includes wsHttpBinding, netTcpBinding, and netMsmqBinding. If you are using a custom binding, turn on secure conversations with the authenticationMode attribute as follows:

    <binding name="ServiceBinding"> 
      <security authenticationMode="SecureConversation" 
           requireSecurityContextCancellation ="false"> 
         <secureConversationBootstrap authenticationMode="MutualCertificate"> 

Additional Resources