How can i enable WCF Data-Encryption
How can I enable the encryption of an WCF (Windows Communication Foundation) Service with VB.NET?
Is it enough to add a certificate to a servi开发者_如何转开发ce an set <security mode=""> to "TransportWithMessageCredential"? Or is there any other settings needed?
If this is enough:
What's with the client? Maybe I'm wrong but I thought the client and the server need a certificate?!
The client can encrypt messages with the server public key. But how does the server encrypt messages to the client? Or does the client generate an symmetric encryptionkey and send it to the server?
It depends what type of end point you are using. If you are using an HTTP/HTTPS endpoint, simply having a server certificate is sufficient.
精彩评论