Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set customBinding to Transport Only Security?

How do you set a WCF customBinding to use only transport level security?

If it were a wsHttpBinding, it would be:

<security mode="Transport" />

The scenario is I am calling a Java SOAP service that uses transport-only security. No message signing.

like image 893
Fenton Avatar asked Dec 20 '12 09:12

Fenton


People also ask

What is security mode transport?

Transport Mode is a method of sending data over the Internet where the data is encrypted but the original IP address information is not. The Encapsulating Security Payload (ESP) operates in Transport Mode or Tunnel Mode. In Transport Mode, ESP encrypts the data but the IP header information is viewable.

How transport security is implemented in WCF?

The transport security for this binding is Secure Sockets Layer (SSL) over HTTP, or HTTPS. To create an WCF application that uses SSL, use IIS to host the application. Alternatively, if you are creating a self-hosted application, use the HttpCfg.exe tool to bind an X. 509 certificate to a specific port on a computer.

What is the difference between BasicHttpBinding and WsHttpBinding?

Primarily BasicHttpBinding is designed to exchange SOAP over HTTP(s) only, just like old ASMX or . net web services and supports the WS-I BasicProfile. WsHttpBinding supports the advanced WS-* specification which includes WS-Addressing and WS-Security etc.

How can custom binding be added to an object that is sealed?

To do this, you add the individual binding elements to a collection represented by an instance of the BindingElementCollection class, and then set the Elements property of the CustomBinding equal to that object.


1 Answers

This may be quite context specific, but I needed to use:

<security authenticationMode="MutualCertificateDuplex" />

There are many more "authentication modes" than there are "modes".

like image 112
Fenton Avatar answered Sep 20 '22 17:09

Fenton