WSE3 web farm problem: "Key not valid for use in specified state"



I have a web service in ASP.NET 2.0 and WSE 3.0. It worked fine until I
setup a web farm with a hardware load balancer. The error I received is "Key
not valid for use in specified state". However, If I connect directly
without going through load balancer, then all servers work fine. I looked at
the client and servers WSE trace, and noticed that the sct was issued in
server1, and the actual request went to server2, like the following

Client output: RST
server1 input: RST
server1 output: RSTR
Client input: RSTR

Client output: Web Service Request
server2 input: Web Service Request ==> Exception: Key not valid for use in
specified state in (Entering SOAP filter
Microsoft.Web.Services3.Design.MutualCertificate11Assertion+ServiceInputFilter)
server2 output: ==> Exception thrown: Send security filter on the server
could not retrieve the operation protection requirements from the operation
state.

The WSE configuration uses X.509 Certificates with client authorization, the
following is my policy file, with stateful security context token enabled in
web.config.

--- Policy start ---

<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy";>

<extensions>

<extension name="authorization"
type="Microsoft.Web.Services3.Design.AuthorizationAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />

<extension name="mutualCertificate11Security"
type="Microsoft.Web.Services3.Design.MutualCertificate11Assertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />

<extension name="x509"
type="Microsoft.Web.Services3.Design.X509TokenProvider,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />

<extension name="requireActionHeader"
type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />

</extensions>

<policy name="WSE">

<authorization>

<allow user="CN=Client" />

<deny user="*" />

</authorization>

<mutualCertificate11Security establishSecurityContext="true"
renewExpiredSecurityContext="true" requireSignatureConfirmation="true"
messageProtectionOrder="SignBeforeEncryptAndEncryptSignature"
requireDerivedKeys="true" ttlInSeconds="300">

<serviceToken>

<x509 storeLocation="LocalMachine" storeName="My"
findValue="CN=WebService" findType="FindBySubjectDistinguishedName" />

</serviceToken>

<protection>

<request signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="true" />

<response signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="true" />

<fault signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="false" />

</protection>

</mutualCertificate11Security>

<requireActionHeader />

</policy>

</policies>

--- Policy End ---

The following is the trace log in server2 when the request failed.

--- server2 input trace start ---
<inputMessage utc="5/10/2007 8:59:49 PM"
messageId="urn:uuid:9b1284d1-f19e-4509-b7f2-7178625ad545">
<processingStep description="Unprocessed message">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
<soap:Header>
<wsa:Action
wsu:Id="Id-51bb555b-d19f-47b8-9df9-755820211ad8">MyService:MyMethod</wsa:Action>
<wsa:MessageID
wsu:Id="Id-75188109-5078-4afa-a0f7-3431d05492e6">urn:uuid:9b1284d1-f19e-4509-b7f2-7178625ad545</wsa:MessageID>
<wsa:ReplyTo wsu:Id="Id-379fbea5-7c5f-404d-a959-07604062a789">

<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:ReplyTo>
<wsa:To
wsu:Id="Id-6873c57a-40fd-475c-9418-f587f4544c9c">http://servers/MyService.asmx</wsa:To>
<wsse:Security soap:mustUnderstand="1">
<wsu:Timestamp wsu:Id="Timestamp-bc117d74-f025-45cc-8048-c4ba7ceac781">
<wsu:Created>2007-05-10T21:01:46Z</wsu:Created>
<wsu:Expires>2007-05-10T21:06:46Z</wsu:Expires>
</wsu:Timestamp>
<wssc:SecurityContextToken
xmlns:wssc="http://schemas.xmlsoap.org/ws/2005/02/sc";
wsu:Id="SecurityToken-60dd0d22-a479-4ab0-b02f-0c2c99f355ff">

<wssc:Identifier>urn:uuid:ac28f433-e1f5-48fe-ac9a-3d1e683467d8</wssc:Identifier>
<p:Cookie
xmlns:p="http://schemas.microsoft.com/wse/2005/03/StatefulSCT";>

<p:EncodedData>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAKovlp3KTE0ubFGHrKpYOrQAAAAACAAAAAAADZgAAqAAAABAAAADCOR6dq4CEcVS3aKRFEaDQAAAAAASAAACgAAAAEAAAAIXdjxkI97OK5X5kbWOF0GRYCwAAlOiL/Ih9TWF1V9beOJD1t0R/NWS04419iyqjA/SRozbk+5FjTN3EwfnDsz9IbqB89KL5e5mQ8aDPJyohh88lRzVfEoQ65UGa+KPz7SeGso3oaXwze4M7GjmdNlvcGmIOjwmwIfXZFM9jswwGWBr7CWMJd96CvyM7C2jBaHYkcbvyj4ntZe4pfBUfptyvmmQyzCzIvcB+4oPJ3I5VfxY1xJEAJrXzN396AXme4LoQ3Y5fkGeQKZgq4IpV99aiVWOjUwA3ENoAD3Uauh5cJXCnGvb6mNMjB4P7Il3dF2u6Cil4wjYm0Zm83Rw6vholTd+xRh9/TwWqx0Sa+R/3JBeloOnBgDqcGUnCtcP4USFQaTqIPnTh7tWZ7BdQQ7txZgyWk6odsDkvoAiUKEX+99joDcSYtBStXsS3E8lq8ufCqrx7M8AbuwLa0Pil++54dI7ZynXE3iewmeCVyZXwObH8MzzionooLGfmLX9bWP/wn1PvXrkhjIXacfxwB40XbYqk5g1uEJhMancGX6HnqHVBV+3DFRxf61OyLt0s9xNOUkVeZCy7eFyHP6C28WrxqitWeIz9CEke0sx4SGcFDo0eKSMvUi8Mak17BaNCsHY1Mffj2XzbUwXxBhUg8sXhpWsdsO4lmCOQ49oH5pco+t/amxc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edData>
</p:Cookie>
</wssc:SecurityContextToken>
<wssc:DerivedKeyToken
wsu:Id="SecurityToken-c89f8737-6a0f-48ae-8b9b-a84c2d0a5177"
Algorithm="http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
xmlns:wssc="http://schemas.xmlsoap.org/ws/2005/02/sc";>
<wsse:SecurityTokenReference>
<wsse:Reference
URI="#SecurityToken-60dd0d22-a479-4ab0-b02f-0c2c99f355ff"
ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct"/>
</wsse:SecurityTokenReference>
<wssc:Generation>0</wssc:Generation>
<wssc:Length>24</wssc:Length>
<wssc:Label>WS-SecureConversationWS-SecureConversation</wssc:Label>
<wssc:Nonce>PkcVQuvQN2Qe/zkzo9zCqg==</wssc:Nonce>
</wssc:DerivedKeyToken>
<wssc:DerivedKeyToken
wsu:Id="SecurityToken-ac68c35f-35d8-47e5-aa26-3c624156c140"
Algorithm="http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
xmlns:wssc="http://schemas.xmlsoap.org/ws/2005/02/sc";>
<wsse:SecurityTokenReference>
<wsse:Reference
URI="#SecurityToken-60dd0d22-a479-4ab0-b02f-0c2c99f355ff"
ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct"/>
</wsse:SecurityTokenReference>
<wssc:Generation>0</wssc:Generation>
<wssc:Length>32</wssc:Length>
<wssc:Label>WS-SecureConversationWS-SecureConversation</wssc:Label>
<wssc:Nonce>kF2ZSWYJzlUX9OsbbZWKVQ==</wssc:Nonce>
</wssc:DerivedKeyToken>
<xenc:ReferenceList xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
<xenc:DataReference URI="#Enc-505c5713-6749-4621-8355-c9cb8eaedcc0"/>
<xenc:DataReference URI="#Enc-7246c760-6fac-46af-b286-0d1ba4568eef"/>
</xenc:ReferenceList>
<xenc:EncryptedData Id="Enc-505c5713-6749-4621-8355-c9cb8eaedcc0"
Type="http://www.w3.org/2001/04/xmlenc#Element";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
<xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
<wsse:SecurityTokenReference>
<wsse:Reference
URI="#SecurityToken-ac68c35f-35d8-47e5-aa26-3c624156c140"
ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk"/>
</wsse:SecurityTokenReference>
</KeyInfo>
<xenc:CipherData>

<xenc:CipherValue>W29KdTw34FIvERCdWiOzGIl3FD9HKWwlxN/VYadXs5xN4tl/vpHmDw44wNmlI0+SuT616MJQBJYe440ggrRQxHoGhSFXgsjVHGy2t6eAejuQUvCgR3pecCgXk31AZp9Reg4kF16MlXaRS2h+AZNoitiH44OaI/xHo0bDtaW2mJcgWrjLlINIuoPeJEF7C13YoVLN2pMvedxHQ1VR5ynY6iqkHfcjwsm8YFuIbvc0iY5Cz6T3HVrXsVE5PiSNwKYxGTz5zrybLN16TNu34z6GOM8oBSG0oWESqGrtGjgUEwj8Y7ZpNQQaAzCUkQtmAAMi2eDwhO94f09DTyB7757p++7K0uzwqrAi4Z9QhgLd5DRHQw3nifuUoO8ZEKxcw8zRvpRXYnEuA5xXFbsh4oVisglste1k711damhvQJpRuPmfYCFWKN4lvuR9p5pmNFw4uQwaPte/cTVf5LaSvDGsm8ECgKseav0qh04ntruw9vavHtUN5491spDBwcYo6AWiMRageKDskeng5jRLn9LtsB56xp0uf9HHE5kPJ8gz83eviNGrmhkVMI4xylwbPcyCsuR6CdU/IhgP6zJh2/pxiiUqLAiVHkfvw+IMnoLuN9aUqoePEolsq2FHyPbaSM/YIkFTPMavoI40MX1TbL7ounoaa285/gUsGtI9P/O+OsJ3kuBbp+JZcDmwWMe6BSgRJ+i9DhKB5uVdN79CRJOkaMpeNAbLxA1kHeibGVXi1cOUiHd127Em8JxPFAIQ7bHUii5Nmft9G4qB3iQ9VTsLSD/ped2n0KmbmoxHPNtC/t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hVGrRynWS434je2YThdSUOtREKSL1Y03phwm0i6R9FFQhk/NHY4IvER5NRGLldoUMtkG2sVKfaxfeCSvnJQQG+U7XojOSuoq9Z4VowPFWijuptzkd05weID4dAJqs75ehLNZ2f+v+VCsisz1S0IuVMkv5zu9cE8CsGy6ZQ5GqL2hy4tFzgU3DfyREGHI3p7VczdfsJmnST7DixG0y6uDCSmNwcriqQzUfGClTobvMSCV3/UXhp+S9AM41mmXs=</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</wsse:Security>
</soap:Header>
<soap:Body wsu:Id="Id-81736880-996f-469a-8afd-d475fa8ef353">
<xenc:EncryptedData Id="Enc-7246c760-6fac-46af-b286-0d1ba4568eef"
Type="http://www.w3.org/2001/04/xmlenc#Content";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
<xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
<wsse:SecurityTokenReference>
<wsse:Reference
URI="#SecurityToken-ac68c35f-35d8-47e5-aa26-3c624156c140"
ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk"/>
</wsse:SecurityTokenReference>
</KeyInfo>
<xenc:CipherData>

<xenc:CipherValue>QfAlTGPPMbzgAelQ+3gNkANVHDyCxCqBB6mjrgHS/yUpvQV7ZWoink1xYrATKlggHXiRzZjNzczqaRChcJ855lajPKo0rwDYZz7rxeG4ET2oS0sXUfk3BJ7kni8AvDJMf1+CFd5GqnmYdUvI/TtTf+vUUyUPyv3maXXsHCqOrXAUggt74oyT5LL34Mbul7GC</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</soap:Body>
</soap:Envelope>
</processingStep>
<processingStep description="Entering SOAP filter
Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter"/>
<processingStep description="Exited SOAP filter
Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter"/>
<processingStep description="Entering SOAP filter
Microsoft.Web.Services3.Design.MutualCertificate11Assertion+ServiceInputFilter"/>
<processingStep description="Exception thrown: Key not valid for use in
specified state.
"> at System.Security.Cryptography.ProtectedData.Unprotect(Byte[]
encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
at
Microsoft.Web.Services3.Security.Cryptography.DataProtectionSecurityStateEncoder.DecodeSecurityState(Byte[] data)
at
Microsoft.Web.Services3.Security.Tokens.SecurityContextTokenManager.DecodeTokenInfo(XmlElement encodedTokenInfo)
at
Microsoft.Web.Services3.Security.Tokens.SecurityContextTokenManager.DecryptTokenInfo(SecurityContextToken sct, XmlElement encodedData)
at Microsoft.Web.Services3.Security.Tokens.SecurityContextToken.RecoverKey()
at Microsoft.Web.Services3.Security.Tokens.IssuedToken.get_Key()
at Microsoft.Web.Services3.Security.Tokens.IssuedToken.get_KeyBytes()
at Microsoft.Web.Services3.Security.Tokens.DerivedKeyToken.get_Key()
at
Microsoft.Web.Services3.Security.EncryptedData.ResolveDecryptionKey(String
algorithmUri, KeyInfo keyInfo)
at Microsoft.Web.Services3.Security.EncryptedData.Decrypt(XmlElement
encryptedElement)
at Microsoft.Web.Services3.Security.EncryptedData.Decrypt()
at Microsoft.Web.Services3.Security.Security.LoadXml(XmlElement element)
at Microsoft.Web.Services3.Security.Security.CreateFrom(SoapEnvelope
envelope, String localActor, String serviceActor)
at
Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope envelope)
at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)</processingStep>
</inputMessage>
--- server2 input trace end ---

Anyone has any idea what's wrong here, or any pointer to configure WSE to
work with web farm?

Bryan

.



Relevant Pages

  • Re: How to call Web Service Securely
    ... Maybe I am complicating WSE too much - can you point me to a simple ... you could provide a logon screen in the client app and create a NetworkCredential ... tokens - but that is tied to .NET 2.0 ... make a web method via dialup to my IIS Web Service. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web Services, Security, X.509
    ... We have a smart client application which consumes an internet-facing ... (At this time the web service and the client use ... WSE 3.0 and it is working ... Finally, if a X.509 certificate is required, which certificate is the ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • had to elevate ASPNET account user rights assignment
    ... I have a client running in our office and asp.net web service ... I finally got the wse 2.0 enabled asp.net web service ... authenticate my username and password as cleartext? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Problem invoking WSE 2.0 enabled WebService
    ... Yes I mean secure web service implemented with WSE. ... enabled web service by manually creating the security header from the ... you can not consume it from a client application that ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: VBA access to WSE web service?
    ... \par Yes, you're right, COM interop is one possible approach as long as the client machine also has .net framework and WSE installed... ... \par Microsoft Online Support ... \par Subject: Re: VBA access to WSE web service? ... \par>Regarding on the calling WSE protected XML Webservice through Office ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Loading