views:

55

answers:

3

Here is a scenario:

  1. Desktop application
  2. Installed from the web
  3. Needs to call a WCF webservice
  4. Transferred data needs to be encrypted from Client to Server and Server to Client

Is there a well understood solution for this that is:

  1. Secure
  2. Easy to manage and deploy

I guess what this comes down to firstly is whether https encryption happens in both directions... Does it? Or do you need mutual authentication for that?

+4  A: 

Try using HTTP over SSL

matt-dot-net
Don't you mean HTTP over SSL?
psmears
why yes, yes i do.
matt-dot-net
A: 

HTTPS works...

I was confusing Encryption with Authentication and they are two different things. Simple Https which is the most common only authenticates the server to the client which is sufficient in many cases. An additional step (where the client also has a certificate) can be required to authenticate the client to the server but this is not required. In both scenarios, data with Https is encrypted from both the server to the client and client to the server using a session key once the SSL handshake has been completed. This is all described here:

Description of the Secure Sockets Layer (SSL) Handshake

Steve Sheldon
+2  A: 

HTTPS is what you're after - it does provide end-to-end encryption (client-to-server and server-to-client).

So long as you can generate and install a server certificate, and be sure that your clients 'trust' the issuing authority of your certificate, then you're good to go. Note that this is not mutual authentication - your clients know that they have contacted the correct server, but the server does not know who has contacted it.

It can offer mutual authentication through the use of client-side certificates, but I would argue that does not fall under the 'easy to deploy' requirement.

Neil Moss