【发布时间】:2015-04-15 15:02:40
【问题描述】:
我是 openssl 新手。 我正在尝试编写一个python脚本(调用openssl)来解密多个p12加密的eml文件但失败了。
我可以在 Thunderbird 中打开它们。
这是我尝试过的:
openssl pkcs12 -in keys/pkitepki.p12 -clcerts -nokeys -out file.crt.pem
openssl pkcs12 -in keys/pkitepki.p12 -nocerts -out file.key.pem
openssl smime -decrypt -in smime.p7m -recip file.crt.pem -inkey file.key.pem
我得到的错误是:
Error reading S/MIME message
139955665413864:error:0D0D40D1:asn1 encoding routines:SMIME_read_ASN1:no content type:asn_mime.c:451
我的步骤有什么问题?
【问题讨论】:
标签: linux email openssl encryption smime