1

受信したメッセージのヘッダーの下にある内容を確認してください。私はAS2プロトコルに取り組んでいます。メッセージは送信できますが、受信時に問題が発生します。

Date: Fri, 28 Jun 2013 13:22:03 GMT
From: XXXXXXX
Message-ID: XXXXXXXXXX
MIME-Version: 1.0
Content-Type: application/pkcs7-mime; smime-type=enveloped-data;  name=smime.p7m
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename=smime.p7m
Disposition-Notification-To: XXXXXXXX
Disposition-Notification-Options: signed-receipt-protocol=optional, pkcs7-signature;            signed-receipt-micalg=optional, sha1
Receipt-Delivery-Option: XXXXXXXXXXXXXXXx
EDIINT-Features: CEM, multiple-attachments, AS2-Reliability
AS2-Version: 1.2
AS2-To: YYYY
AS2-From: XXXX
Content-Length: 59074

OpenSSL または PHP を使用してコンテンツを取得する方法を教えていただけますか? 私が実行するほとんどのコマンドで、次のエラーが発生します。

Error reading S/MIME message
140224062383968:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:150:
140224062383968:error:0D0D106E:asn1 encoding routines:B64_READ_ASN1:decode error:asn_mime.c:193:
140224062383968:error:0D0D40CB:asn1 encoding routines:SMIME_read_ASN1:asn1 parse error:asn_mime.c:528:
4

1 に答える 1