-
Bug
-
Resolution: Done
-
Major
-
3.0.4.Final
-
None
-
None
Hi,
I have created a small rest service, which receives an SMIME encrypted and signed request.
In the examples I found a similar one, which is decrypts and verifies a request, but in my
case the order is different: first I encrypt the base JSON message, and then sign it.
In the original examle the first step is the signing and then comes the encrytion, and this
one is working fine. My example (JSON->encryption->signing) produces different exceptions on
receiver side after signature verification, when I'm trying to decrypt it.
Tested cases (client - server):
- sign - verify = OK
- encrypt - decrypt = OK
- sign+encrypt - decrypt-verify = OK
- encrypt+sign - verify-decrypt = FAILED
Regards,
Tamás