phpas2 icon indicating copy to clipboard operation
phpas2 copied to clipboard

send to mendelsontestAS2 problem

Open xinjian555 opened this issue 3 years ago • 8 comments

when i use the demo send message to  "mendelsontestAS2" Q1: the "MDN" return "The system is unable to find out the sign algorithm of the inbound AS2 message."

Q2: and if i config "compress true" then the MDN return "exception reading compressed stream."

any one can help me?

xinjian555 avatar Aug 12 '22 10:08 xinjian555

@tiamo @robsonala @homer8173 @k0mar12 any one can you help me? thanks

xinjian555 avatar Aug 12 '22 10:08 xinjian555

@xinjian555 hi. Could you pls provide your configs

k0mar12 avatar Aug 12 '22 10:08 k0mar12

`

    'id' => 'mendelsontestAS2',
    'target_url' => 'http://testas2.mendelson-e-c.com:8080/as2/HttpReceiver',

    // key4
    'certificate' => '-----BEGIN CERTIFICATE----- xxxxxx-----END CERTIFICATE-----',

    'content_type' => 'application/EDI-Consent',
    //'content_type'              => 'Text/Plain',
    'compression' => true,
     'signature_algorithm' => 'sha256',

    'encryption_algorithm' => '3DES',
    'content_transfer_encoding' => 'base64',
    'mdn_mode' => 'sync',
    'mdn_options' => 'signed-receipt-protocol=optional, pkcs7-signature; signed-receipt-micalg=optional, sha256',
    //'mdn_options' => 'signed-receipt-protocol=optional,pkcs7-signature; signed-receipt-micalg=optional,sha1'
]

`

@k0mar12 this is my config, thanks

xinjian555 avatar Aug 12 '22 10:08 xinjian555

i have add my code here the example code from github, nothing modify

as2-example thanks

xinjian555 avatar Aug 12 '22 10:08 xinjian555

Q1: Looks like the mendelson server doesn't support sha256, try to use 'signature_algorithm' => 'sha1' Q2: Need to check

tiamo avatar Aug 12 '22 13:08 tiamo

@tiamo
thank you for your reply

when i config "compress=>false" signature_algorithm=>'sha256' or signature_algorithm=>'sha1'

always return "The system is unable to find out the sign algorithm of the inbound AS2 message."

can you help check why?

thank you very much

xinjian555 avatar Aug 12 '22 14:08 xinjian555

Try to change mdn_options with sha1

tiamo avatar Aug 12 '22 15:08 tiamo

@tiamo
thank you for your tips

when i config "compress=>true"

'content_type' => 'application/EDI-Consent', 'compression' => true, 'signature_algorithm' => 'sha1', 'encryption_algorithm' => '3des', // 'content_transfer_encoding' => 'binary', 'mdn_mode' => PartnerInterface::MDN_MODE_SYNC, 'mdn_options' => 'signed-receipt-protocol=optional, pkcs7-signature; signed-receipt-micalg=optional, sha1',

than retrun "exception reading compressed stream."

can you help me check it thank you very much

xinjian555 avatar Aug 12 '22 15:08 xinjian555