WCF C# web service encryption

royrubio used Ask the Experts™
I have several web services written in C# with WCF which has several hundreds of web methods in it.  A new requirement came up that I have to implement SSL on IIS and also do encryption/decryption with message digest at the web service method level.  My initial thought was to re-visit all the web methods and apply encr/decr to those specific sensitive fields but with time constraint, is not possible.  Is there a way to apply encryption at the SOAP level, e.g. encrypting/decrypting the SOAP body?  In this way, I could probably use the entire SOAP body to create the message digest.  Please provide guidance, ideas or links to documentations.  I tried searching but I could not find a good one.  Thanks.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Here is a sample for using secure connection over SSL with certificates. http://msdn.microsoft.com/en-us/library/ms789011%28v=VS.90%29.aspx

But also you have to set the sertificate to the serving port, on the server side. (here is how it's done : http://msdn.microsoft.com/en-us/library/ms733791%28v=VS.90%29.aspx)



Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial