CMSUTILSection: NSS Security Tools (1)
Updated: 5 June 2014
Index Return to Main Contents
NAMEcmsutil - Performs basic cryptograpic operations, such as encryption and decryption, on Cryptographic Message Syntax (CMS) messages.
- cmsutil [options] [[arguments]]
The cmsutil command-line uses the S/MIME Toolkit to perform basic operations, such as encryption and decryption, on Cryptographic Message Syntax (CMS) messages.
To run cmsutil, type the command cmsutil 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 the cmsutil command are defined as follows:
- Encrypt a message.
- Decode a message.
- Envelope a message.
- Create a certificates-only message.
- Sign a message.
Option arguments modify an action.
- Decode a batch of files named in infile.
- Use this detached content (decode only).
- Specify the key/certificate database directory (default is ".")
- Specify a file containing an enveloped message for a set of recipients to which you would like to send an encrypted message. If this is the first encrypted message for that set of recipients, a new enveloped message will be created that you can then use for future messages (encrypt only).
- Use password file to set password on all PKCS#11 tokens.
- Include a signing time attribute (sign only).
- Use specified hash algorithm (default:SHA1).
- Generate email headers with info about CMS message (decode only).
- Use infile as a source of data (default is stdin).
- Keep decoded encryption certs in permanent cert db.
- Specify nickname of certificate to sign with (sign only).
- Suppress output of contents (decode only).
- Use outfile as a destination of data (default is stdout).
- Include an S/MIME capabilities attribute.
- Use password as key database password.
-r recipient1,recipient2, ...
- Specify list of recipients (email addresses) for an encrypted or enveloped message. For certificates-only message, list of certificates to send.
- Suppress content in CMS message (sign only).
- Set type of cert usage (default is certUsageEmailSigner).
- Print debugging information.
- Specify an encryption key preference by nickname.
cmsutil -C [-i infile] [-o outfile] [-d dbdir] [-p password] -r "recipient1,recipient2, . . ." -e envfile
cmsutil -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, . . ."
Sign Message Example
cmsutil -S [-i infile] [-o outfile] [-d dbdir] [-p password] -N nickname[-TGP] [-Y ekprefnick]
For information about NSS and other tools related to NSS (like JSS), check out the NSS project wiki at m[blue]http://www.mozilla.org/projects/security/pki/nss/m. The NSS site relates directly to NSS code changes and releases.
Mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto
The NSS tools were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.
Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Mozilla NSS bug 836477
- OPTIONS AND ARGUMENTS
- SEE ALSO
- ADDITIONAL RESOURCES
This document was created by man2html, using the manual pages.
Time: 05:29:02 GMT, December 24, 2015