Hi,
I ran a quick test with your exported Sign-Verify-MPG(1).zip, added a key and cert with pma and test was working.
Are you sure that you are not trying to validate the formatted response. e.g in postman/soapui you should take the raw the response from sign as input for the request for verify. by default postman/soapui format the response, i.e. alter the message.
------------------------------
Jeroen Willems
Integration Architect - Managing Partner
Integration Designers
------------------------------
Original Message:
Sent: Tue September 12, 2023 01:04 AM
From: Prashant Patel
Subject: Unable to verify the signed request on DataPower
On Data Power V10 virtual appliance,
I have created an MPGW service for sign and verify.
I am able to sign the message using our public and private key and made another rule to verify that particular message using public key on same processing policy but it is throwing below error
"*RSA signature did not verify* (from client)".
- The configuration of Sign Action is :
- XML security.
- Envelope Method equal Enveloping Method.
- Message type equal Raw XML Document, including SAML for Enveloped.
- Add in Key field the private key.
- Add in certificate field the certificate.
- The configuration of Verify Action is :
- Signature Verification Type equal RSA/DSA Signatures
- Add in certificate field the certificate.
Note: The certificate key are proper pair, the message send to verify is not altered i am directly sending the whole signed msg in verify req body
Sign :http://192.168.31.151:2007/sign
Verify: http://192.168.31.151:2007/verify
Any help to solve this issue is highly appreciated.
------------------------------
Ashwin
------------------------------