You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble with decrypting this soap response message. Even though I have encrypted my request content properly. The decrypt error I got is:
[Error: Encrypted message length is invalid.] length: 128, expected: 256
Hello,
I am having trouble with decrypting this soap response message. Even though I have encrypted my request content properly. The decrypt error I got is:
[Error: Encrypted message length is invalid.] length: 128, expected: 256
Soap response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:Security 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:mustUnderstand="1">
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="EK-966081dd-1ce9-46cd-836e-ec3d0f765c5f"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
wsse:SecurityTokenReference
<wsse:KeyIdentifier EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">1HOPhACJhYzr2YhYKoPckL5AEjw=</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
xenc:CipherData
xenc:CipherValuebOHw8If5JlcOwPYYX1JSIjWd++VN6oEfowxUyqoLj8kVIwWHGPlFzhhynqAF3C+egb9xF3WSQ+AxWDotxC4YTqUCKFFzm/2Efo1rDbQI4zSMCR092sFy6VuPr4MHyIvwwl+NhkyF6KFhSeYTSh4mbZocxacKXAKjjHtVgI9UEyY=</xenc:CipherValue>
</xenc:CipherData>
xenc:ReferenceList<xenc:DataReference URI="#ED-86b1df15-b130-4f26-b071-e3d4fe086085"/></xenc:ReferenceList>
</xenc:EncryptedKey>
<wsse:BinarySecurityToken
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
wsu:Id="X509-e128a6d1-d27d-4680-a4d6-3188b5fa442f">MIIDHjCCAgagAwIBAgIBBDANBgkqhkiG9w0BAQUFADAgMQswCQYDVQQGEwJDSDERMA8GA1UEAxMIU3dpc3NkZWMwHhcNMDYwNTAxMTYyMzQ4WhcNMzEwNDI1MTYyMzQ4WjBGMQswCQYDVQQGEwJDSDERMA8GA1UEChMIU3dpc3NkZWMxGDAWBgNVBAMTD1JlZkFwcCBSZWNlaXZlcjEKMAgGA1UEBRMBNDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxvsAN3AlxDGEV+DV44m4c02PpAfFtu3mO2a4XV6aZuFPiWRnjfxZOYUyDH9hyGPX3tzGdDmNOC2u1vpeoDHyH8bOniW3mju0jU/nKdFK5pMesYVotcuAq1/+MGHEj31Uorgaukia3yKlDurZyT9AQva/yHn36ftrypq94WquAU8CAwEAAaOBwDCBvTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE8DATBgNVHSUEDDAKBggrBgEFBQcDAjAdBgNVHQ4EFgQUpHoiKNGY2YsLBKxwIV+jURt858MwSAYDVR0jBEEwP4AUlv6LwOYhDQgiqCcEXiaZvwYYrWmhJKQiMCAxCzAJBgNVBAYTAkNIMREwDwYDVQQDEwhTd2lzc2RlY4IBADAaBgNVHREEEzARgQ9wa2lAc3dpc3NkZWMuY2gwCQYDVR0SBAIwADANBgkqhkiG9w0BAQUFAAOCAQEAIS1KrrPDxzROqMkK6JfpUMLPE//X2uFobcpNT2CHLZ5MHgmFKeDsm4EeO9zFgm6Rg6W7lFUIHZ3M1l0TwF0bwycaVRrmlvwmRbRZjzx/NkbloLecICkqVSmzo+O0OnyKWMxnlnl/1nKvyqc6OtQuL7Py3eOlj+oX4uB7+rK1pPeQuO1L0ywyncdEkKucoBZxlOPaDFLlle3T6TrICxlQDw4FSwc5FiQGY5q8Betjs3wF6pSz3tS3GxMnbjXwziDL3sTSJgTAo368IZm2PEdnZXKIcopkmVhqeLoGXBUrtQoXRYC104sZvDLdHFWKb2rX4RpOM1/6t9VkvYSs10RhwA==</wsse:BinarySecurityToken>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-67704f1b-b7e5-4c5b-8df0-ac9bcef7fb29">
ds:SignedInfo
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="soap"/></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-fbaafce5-7b0b-4abb-9678-5eba667cbeb2">
ds:Transforms<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
ds:DigestValuew1rWspxovlMzU7aUjt5+I5lZ3SA=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#TS-f244534c-e8ff-4c32-8430-21436249b77b">
ds:Transforms
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsse soap"/></ds:Transform>
</ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
ds:DigestValueDuazAfn//JRJZqJs+NwenaBo/f4=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
ds:SignatureValueQ7OJZnDXggdCLmIVTPop1oS+4SEw7Ac6hrnHTNfLsC+syr5pUhkWcBXZSdMFqzTS2g8z+14PdFXSwgOHEKK2CuihrKFRO+4pcehLwT+RZempnD1v7LqAGX/OfP3AkA9Jz5xK9mUQH7yqBSDgYPk5oNb0TX6Ff3MiEdV9ghidtYk=</ds:SignatureValue>
<ds:KeyInfo Id="KI-d313becb-e609-4b23-a20c-bd6d1a868fb0">
<wsse:SecurityTokenReference
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"
wsu:Id="STR-46b8ebb3-1909-4244-9f14-f804a5a2f272"><wsse:Reference URI="#X509-e128a6d1-d27d-4680-a4d6-3188b5fa442f" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
<wsu:Timestamp wsu:Id="TS-f244534c-e8ff-4c32-8430-21436249b77b">
wsu:Created2016-11-28T12:17:40.513Z</wsu:Created>
wsu:Expires2016-11-28T12:32:40.513Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</SOAP-ENV:Header>
<soap:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-fbaafce5-7b0b-4abb-9678-5eba667cbeb2">
<xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="ED-86b1df15-b130-4f26-b071-e3d4fe086085" Type="http://www.w3.org/2001/04/xmlenc#Content"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey"><wsse:Reference URI="#EK-966081dd-1ce9-46cd-836e-ec3d0f765c5f"/></wsse:SecurityTokenReference>
</ds:KeyInfo>
xenc:CipherData
xenc:CipherValueYtVnRclZq5PoxPSctpZndkMencoYO7uPt5Md6dCfQQ6qmBfEQ9ScoueIpIF1TpsXQcMR/v62F1rWquoYomLkf8WsknQe2beN+i0L/0vEb50bJrD5eta6NaQBHJ9ktPpchJH4vFXJyDqem2/h1XHo9lZOCHQdtpg3efXuFDdZLMz82btEA9GilnXsvbWIX+7ODTifUrt84AWFgdWgIrWupcYBvQoLM85tEpD/8aY2VVhbPHMpvvUm+IrJa9RUicUC9eRpVVK+F5IhKPSMDLVQ0A==</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</soap:Body>
</soap:Envelope>
The text was updated successfully, but these errors were encountered: