croisharp
croisharp

Reputation: 1986

WCF Message Security related question

I have a web service with Message security mode, and UserName client credential type. At client side in the endpoint config i have

<endpoint ...>
<identity>
<certificate encodedValue="VeryVeryBigRsaKey" />
<identity>
</endpoint>

I generated my key using pluralsight self cert, and exported it into a *.cer file with Base 64 encoding. And opened generated *.cer with notepad, and that gave me the rsa key (VeryVeryBigRsaKey)

My questions are:

Upvotes: 2

Views: 200

Answers (1)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364249

Most of your questions are answered in another question. Details of the description doesn't have to be exactly correct but the idea and mechanism is correct.

  1. Certificate ensures secure transmission of shared secret (derived key) from client to service
  2. Derived key is used from symmetric encryption between client and server
  3. No if service certificate with private key is not stolen. The private key is what makes your communication secured. If only server hosting the service has a private key and only service has permission to access it in certificate store, nobody else can decrypt the message to get derived key and decipher the communication.

You don't have to be afraid.

Upvotes: 2

Related Questions