ITIDA 4043:message-digest attribute value does not match calculated value

Question: I get this error when sending ITIDA signed JSON to the authority web server:

4043 4043:message-digest attribute value does not match calculated value[message-digest attribute value does not match calculated value]

Answer: This means the JSON you sent to the web server is different than the JSON that was signed.

One possibility is that you signed JSON with the outer “documents” array like this:

{
   "documents":[
      {
         "issuer":{
	  ...
	  ...

      }
   ]
}

but then the JSON sent to the authority was only the inner part:

      {
         "issuer":{
	  ...
	  ...

      }

Or perhaps it was the reverse.

Another possibility is that the JSON in the body of your HTTP request was sent in a different character byte representation (i.e. character encoding) than what was signed.  Chilkat will always sign the utf-8 byte representation.  Perhaps your HTTP code sent utf-16, or windows-1256.

Chilkat provides a full example that both signs and sends here:  https://www.example-code.com/nodejs/itida_egypt_sign_and_send.asp

If you are using other code to send, then try using the Chilkat example code for both signing and sending.

Tags :