Mike_G
Mike_G

Reputation: 16502

Can a windows hosted WCF service use HTTPS?

I have a WCF service that is using webHttpBinding on an endpoint, and the WCF service is hosted as a windows service. Is it possible to secure this at the transport level by using HTTPS or some other method?

Upvotes: 4

Views: 6549

Answers (2)

slf
slf

Reputation: 22777

I have not tried to do this with a Windows Service, but here is how I have successfully secured a WCF service using IIS and shared certificates. The biggest difference is that instead of being in the registry as a windows service it's a .svc file hosted up by ASP.net and your service implementation must have the AspNetCompatibilityEnabled attribute flagged to TRUE

see also:

Upvotes: 0

Andrew Hare
Andrew Hare

Reputation: 351586

Yes - you can use HTTPS or even an SSH tunnel if you wanted to.

Here is the MSDN page that explains how to configure WCF for HTTPS.

Upvotes: 7

Related Questions