I've implemented a WSE 3.0 Client that encrypts it's message body. The soap envelope has the following elements:
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
<ds:DigestMethod mlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
...
How do I change the Encryption Method Algorithm to be RSA-15?
The Exception I get is: Unauthorized key encryption method: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p.
I've tried adding this to my web.config file but it seems to be getting ignored:
<microsoft.web.services3>
<security>
<binarySecurityTokenManager>
<add valueType="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" type="Microsoft.Web.Services3.Security.Tokens.X509SecurityTokenManager, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <keyAlgorithm name="RSA15" /> </add> </binarySecurityTokenManager> </security>
<diagnostics>
<trace enabled="true" input="InputTrace.webinfo.xml" output="OutputTrace.webinfo.xml"/> <detailedErrors enabled="true"/> </diagnostics> </microsoft.web.services3>
In fact this whole section is being ignored as the trace files in diagnostics are never created.
Can anyone help with either of these problems?
Thanks Kristina