all groups > dotnet web services enhancements > june 2006 >
You're in the

dotnet web services enhancements

group:

How does WSE3 generate keys?


How does WSE3 generate keys? Hung Ngo
6/22/2006 9:41:01 PM
dotnet web services enhancements:
Hi,
I have some problem with the encrypted key and derived Key.
With <AnonymousForCertificateAssertion> element:
- Is encrypted key generated from the web service public key? and what is
the algorithm used for generating?
- If I set the attribute "requireDerivedKeys=true" in the
<AnonymousForCertificateAssertion> element, so derived key will be generated
from the encrypted key?
- Does the encrypted key have relation with the security context token ?

I had tried to read the WSE3.0 document, but it doesn't mention about my
problems.

Thanks in advance!!
Re: How does WSE3 generate keys? Pablo Cibraro
6/23/2006 10:13:30 AM
Hi,

Encrypted key:
Asymmetric keys require more CPU cycles than symmetric keys to encrypt data.
Therefore, when a SOAP message is encrypted or digitally signed using an
X509SecurityToken security token, an EncryptedKeyToken containing a
symmetric session key is generated to encrypt the SOAP message. That session
key is encrypted using the public key of the asymmetric key pair associated
with the X509SecurityToken.
This token also existed in the previous versions of WSE, but it was
something internal and the developer could not use it as he can do now.


DerivedKey: Yes, it is generated from the encrypted key

The encrypted key does not have direct relation with the security context
token

Regards,

Pablo Cibraro

http://weblogs.asp.net/cibrax






[quoted text, click to view]

Re: How does WSE3 generate keys? Hung Ngo
6/23/2006 10:27:02 AM
Thank you so much!
I have read in WSE documentation that the P-SHA-1 is used to generate the
derived key, but I can't find the algorithm used to generate the encrypted
key from service's public key ??!
Hung.

[quoted text, click to view]
Re: How does WSE3 generate keys? Pablo Cibraro
6/26/2006 10:57:07 AM
It can use either RSA-1.5 or RSA-OAEP. The default algorithm is the second
one.

Regards,
Pablo Cibraro.

[quoted text, click to view]

AddThis Social Bookmark Button