I have my site ( https:// example.com). This is an internet app
- User can register from the above site-- Completed
- Register user will get a Email and will have a lick to download a Windows Client( WPF or Windows Form client) – Completed
- This WPF or Windows form client will consume WCF( deployed in internet) which is hosted on example.com. I am internally passing UserName and Pwd in Message body.—Completed
Now what I need to know is how to implement Security at message level and transport level.
- The Client request should be encrypted at message level
- WCF server response should be encrypted at message level
- Communication between Client and server should be SSL
I have gone through from msdn.microsoft.com/en-us/library/ff648902.aspx
- How to: Use wsHttpBinding with Username Authentication and TransportWithMessageCredentials in WCF Calling from Windows Forms
- How to: Use Username Authentication with the SQL Server Membership Provider and Message Security in WCF Calling from Windows Forms
- How to: Use Certificate Authentication and Message Security in WCF Calling from Windows Forms
After reading above I am confused which one I need to use. Please suggest which one is the best option for my scenario to meet my above three security conditions
If I use TransportWithMessageCredential
s do I see encryption at message level and transport level both?