Moving from HTTP based basicHttpBinding to HTTPS

3.3k views Asked by At

I'm using basicHttpBinding with custom behaviors in my .NET 4.5 project.

The new request is to authenticate users so I would like to switch https. What is the easiest way for this?

How should I do this migration?

1

There are 1 answers

3
Patrick Hofman On BEST ANSWER

You have to create a binding setting the security mode to Transport which means HTTPS in this case:

<basicHttpBinding>
    <binding name="TransportSecurity">
       <security mode="Transport" />
    </binding>
</basicHttpBinding>

Then change the endpoint url to be HTTPS and you are set.

Also see this old but detailed explanation.