on ‎2019 May 08 4:49 PM
Hi,
For one of my scenario, I have to change the Signature Algorithm in SOAP Adapter Receiver.
When I try to consume the Web Service, I receive this error :
SECU3518: Invalid digest algorithm 'http://www.w3.org/2000/09/xmldsig#sha1' used. Expecting 'http://www.w3.org/2001/04/xmlenc#sha256'
The problem has been confirmed by the Third Party (WS Provider).
I can not change/adapt the certificate.
He works perfectly with SOAPUI and this settings :

AXIS Adapter is maybe an Alternative but I need to know if it's possible with the SOAP Adapter.
Regards,
Youri
Request clarification before answering.
Hi Youri,
Please refer the below link which may be help you:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Youri,
You can use UDF in graphic mapper to generate x-amz-content-sha-256 header:
public String generateContentHashing(String payload)
{
StringBuilder payloadSb = new StringBuilder();
try
{
MessageDigest md = MessageDigest.getInstance("SHA-256");
byte[] hashPayloadInBytes = md.digest(payload.getBytes(StandardCharsets.UTF_8));
for (byte b : hashPayloadInBytes)
{
payloadSb.append(String.format("%02x", b));
}
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
return payloadSb.toString();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, I don't try this approach.
I'm looking for a solution in the Integration Builder with the Communication Channel or Integrated Configuration settings.
Currently I try with the Axis Adapter but I have the same problem :
SECU3518: Invalid digest algorithm 'http://www.w3.org/2000/09/xmldsig#sha1' used. Expecting 'http://www.w3.org/2001/04/xmlenc#sha256'
I found some informations in this note 688983, apparently SAP only uses SHA1 for Digest Algorithm ...
But in the W3.Org documentation : https://www.w3.org/TR/xmlsec-algorithms/#digest-method-uris
SHA-1 is the only digest algorithm defined in [XMLDSIG-CORE] and is mandatory to implement in that specification and in [XMLENC-CORE]. Use of SHA-1 is discouraged in [XMLDSIG-CORE1] and [XMLENC-CORE1] both of which mandate SHA-256 as mandatory to implement and offer a number of other optional SHA algorithms.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.