Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Openssl asn1编码例程问题-将p7m解密为xml_Xml_Openssl_Signature_Smime - Fatal编程技术网

Openssl asn1编码例程问题-将p7m解密为xml

Openssl asn1编码例程问题-将p7m解密为xml,xml,openssl,signature,smime,Xml,Openssl,Signature,Smime,我正在尝试使用openssl在XML文件中解密P7M文件,命令行: openssl.exe smime-notify DER-verify-in fattura.p7m-out fattura.xml 使用此命令,openssl无法解密带有EIDAS签名的P7M(我认为这就是问题所在,其他具有不同签名的文件都可以)。在dos中,我收到以下错误消息: Error reading S/MIME message 6984:error:0909006C:PEM routines:get_name:no

我正在尝试使用openssl在XML文件中解密P7M文件,命令行:

openssl.exe smime-notify DER-verify-in fattura.p7m-out fattura.xml

使用此命令,openssl无法解密带有EIDAS签名的P7M(我认为这就是问题所在,其他具有不同签名的文件都可以)。在dos中,我收到以下错误消息:

Error reading S/MIME message
6984:error:0909006C:PEM routines:get_name:no start line:crypto\pem\pem_lib.c:745:Expecting: PKCS7
Error reading S/MIME message
10788:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto\asn1\tasn_dec.c:1130:
10788:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:290:Type=PKCS7_ISSUER_AND_SERIAL
10788:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:627:Field=issuer_and_serial, Type=PKCS7_SIGNER_INFO
10788:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:596:Field=signer_info, Type=PKCS7_SIGNED
10788:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:627:
10788:error:0D08403A:asn1 encoding routines:asn1_template_ex_d2i:nested asn1 err or:crypto\asn1\tasn_dec.c:477:Field=d.sign, Type=PKCS7
有什么想法吗? 谢谢