NSS Tools cmsutil 编辑
Using cmsutil
Newsgroup: mozilla.dev.tech.cryptoThe cmsutil command-line utility uses the S/MIME Toolkit to perform basic operations, such as encryption and decryption, on Cryptographic Message Syntax (CMS) messages.
Syntax
To run cmsutil, type the commandcmsutil
option[
arguments]
where option and arguments are combinations of the options and arguments listed in the following section. Each command takes one option. Each option may take zero or more arguments. To see a usage string, issue the command without options.Options and Arguments
Options specify an action. Option arguments modify an action. The options and arguments for thecmsutil
command are defined as follows:Options | |
Decode a message. | |
Arguments | |
Specify the key/certificate database directory (default is ".") | |
Generate email headers with info about CMS message (decode only). | |
-r recipient1,recipient2, . . . | Specify list of recipients (email addresses) for an encrypted or enveloped message. For certificates-only message, list of certificates to send. |
-T | Suppress content in CMS message (sign only). |
-u certusage | Set type of cert usage (default is <tt>certUsageEmailSigner)</tt>. |
<-Y ekprefnick | Specify an encryption key preference by nickname. |
Usage
cmsutil -C [-i infile] [-o outfile] [-d dbdir] [-p password] -r "recipient1,recipient2, . . ." -e envfilecmsutil -D [-i infile] [-o outfile] [-d dbdir] [-p password] [-c content] [-n] [-h num]
cmsutil -E [-i infile] [-o outfile] [-d dbdir] [-p password] -r "recipient1,recipient2, . . ."
cmsutil -O [-i infile] [-o outfile] [-d dbdir] [-p password] -r "cert1,cert2, . . ."
cmsutil -S [-i infile] [-o outfile] [-d dbdir] [-p password] -N nickname[-TGP] [-Y ekprefnick]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论