【发布时间】:2012-10-29 18:09:42
【问题描述】:
有没有办法使用 openssl 为 PKCS#7 签名消息传递额外的认证属性?我被命令行困住了。
我目前正在使用:
openssl smime -sign -outform DER -md sha1 -binary -signer my.crt -inkey my.key
我在 openssl cli 帮助中没有找到任何相关选项。
更多信息:
我目前正在尝试在 NodeJS 中构建 SCEP (http://tools.ietf.org/pdf/draft-nourse-scep-23.pdf) 服务器。
SCEP 规范要求构建 PKCS#7 签名 pkiMessages,
The SignerInfo MUST contain a set of authenticatedAttributes (see PKCS#7 [RFC2315] Section 9.2 as well as Section 3.1.1 in this document). All messages MUST contain
* an SCEP transactionID attribute
* an SCEP messageType attribute
* an SCEP senderNonce attribute
* any attributes required by PKCS#7 [RFC2315] Section 9.2 If the message is a response, it MUST also include
目前我唯一的选择是通过child_process.spawn 包装openssl 功能。
【问题讨论】:
标签: cryptography openssl pkcs#7