Saturday, September 7, 2019

How to Message confidentiality and integrity with transport security?

We will discuss Message confidentiality and integrity with transport security

Out of the box, netTcpBinding provides transport security. Even with transport security, all messages are encrypted and signed. Let's discuss this with an example. 

We will continue with the example, that we worked with in Part 50. At the moment we are using netTcpBinding which provides transport security. Now enable message logging. We discussed enabling message logging in Part 9 of WCF video tutorial.

Run the WCF service and the client. When you inspect the logged messages, surprisingly they are in plain text. The reason for this is that, the messages are encrypted and signed at the transport layer. By the time the message is arrived at the log it is already decrypted. Hence, they appear in plain text. 

No comments:

Post a Comment

Get max value for identity column without a table scan

  You can use   IDENT_CURRENT   to look up the last identity value to be inserted, e.g. IDENT_CURRENT( 'MyTable' ) However, be caut...