CMSUTIL(1)
π CMSUTIL(1) β the NSS Security Tools girlies π
okay so bestie, welcome to cmsutil, a lil member of the NSS Security Tools family π she does basic cryptographic operations β encryption, decryption, that whole vibe β on Cryptographic Message Syntax (CMS) messages.
β¨ NAME β¨
cmsutil β Performs basic cryptograpic operations, such as encryption and decryption, on Cryptographic Message Syntax (CMS) messages. π¦
πΈ SYNOPSIS πΈ
cmsutil [options] [[arguments]]
π STATUS π
ngl, this documentation is still work in progress. Please contribute to the initial review in Mozilla NSS bug 836477[1] β she's a work in progress and the link is down in NOTES if you wanna help a girl out π«Ά
π DESCRIPTION π
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. no cap, that's literally the whole thing π
π OPTIONS AND ARGUMENTS π
π Options
Options specify an action. Option arguments modify an action. The options and arguments for the cmsutil command are defined as follows:
-Cβ Encrypt a message. π-Dβ Decode a message. π-Eβ Envelope a message. βοΈ-Oβ Create a certificates-only message. π-Sβ Sign a message. βοΈ
π§ Arguments
Option arguments modify an action.
-bβ Decode a batch of files named in infile.-ccontent β Use this detached content (decode only).-ddbdir β Specify the key/certificate database directory (default is".")-eenvfile β 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).-fpwfile β Use password file to set password on all PKCS#11 tokens.-Gβ Include a signing time attribute (sign only).-Hhash β Use specified hash algorithm (default:SHA1).-hnum β Generate email headers with info about CMS message (decode only).-iinfile β Use infile as a source of data (default is stdin).-kβ Keep decoded encryption certs in permanent cert db.-Nnickname β Specify nickname of certificate to sign with (sign only).-nβ Suppress output of contents (decode only).-ooutfile β Use outfile as a destination of data (default is stdout).-Pβ Include an S/MIME capabilities attribute.-ppassword β Use password as key database password.-rrecipient1,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).-ucertusage β Set type of cert usage (default iscertUsageEmailSigner).-vβ Print debugging information. π-Yekprefnick β Specify an encryption key preference by nickname.
π USAGE π
Encrypt Example
cmsutil -C [-i infile] [-o outfile] [-d dbdir] [-p password] -r "recipient1,recipient2, . . ." -e envfile
Decode Example
cmsutil -D [-i infile] [-o outfile] [-d dbdir] [-p password] [-c content] [-n] [-h num]
Envelope Example
cmsutil -E [-i infile] [-o outfile] [-d dbdir] [-p password] -r "recipient1,recipient2, ..."
Certificate-only Example
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]
π¦ SEE ALSO π¦
certutil(1) β go give her a read too, they're besties fr fr π
π ADDITIONAL RESOURCES π
For information about NSS and other tools related to NSS (like JSS), check out the NSS project wiki at http://www.mozilla.org/projects/security/pki/nss/. The NSS site relates directly to NSS code changes and releases.
Mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto
IRC: Freenode at #dogtag-pki
π AUTHORS π
The NSS tools were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google. iconic honestly π
Authors: Elio Maldonado <emaldona@redhat.com>, Deon Lackey <dlackey@redhat.com>.
β LICENSE β
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/.
π NOTES π
- Mozilla NSS bug 836477
https://bugzilla.mozilla.org/show_bug.cgi?id=836477
this page is from the nss-tools era, dated 5 June 2014 β vintage but still serving looks π
β¨ that's the whole manpage bestie, periodt ππ¦
π¦ where this page comes from
- arch rolling: nss 3.131-1
- arch rolling: nss 3.132-1 Β· MPL-2.0
- centos-stream 10: nss-tools 3.124.0-5.el10 Β· MPL-2.0
- centos-stream 9: nss-tools 3.124.0-5.el9 Β· MPLv2.0
- debian bookworm: libnss3-tools 2:3.87.1-1+deb12u2 Β· MPL-2.0
- debian bookworm: libnss3-tools 2:3.87.1-1+deb12u4 Β· MPL-2.0
- debian trixie: libnss3-tools 2:3.110-1+deb13u4 Β· MPL-2.0
- debian trixie: libnss3-tools 2:3.110-1+deb13u5 Β· MPL-2.0
- fedora 43: nss-tools 3.115.1-1.fc43 Β· MPL-2.0
- fedora 43: nss-tools 3.129.0-1.fc43
- fedora 43: nss-tools 3.131.0-1.fc43 Β· MPL-2.0
- fedora 44: nss-tools 3.122.1-1.fc44 Β· MPL-2.0
- fedora 44: nss-tools 3.130.0-1.fc44
- fedora 44: nss-tools 3.131.0-1.fc44 Β· MPL-2.0
- nixpkgs unstable: nss 3.132
- opensuse-leap 16.0: mozilla-nss-tools 3.125-160000.3.1 Β· MPL-2.0
- opensuse-leap 16.0: mozilla-nss-tools 3.125-160000.3.1 Β· MPL-2.0
- opensuse-leap 16.0: mozilla-nss-tools 3.125-160000.3.1 Β· MPL-2.0
- opensuse-leap 16.0: mozilla-nss-tools 3.125-160000.3.1 Β· MPL-2.0
- ubuntu jammy: libnss3-tools 2:3.68.2-0ubuntu1 Β· MPL-2.0
- ubuntu jammy: libnss3-tools 2:3.98-0ubuntu0.22.04.4
- ubuntu jammy: libnss3-tools 2:3.98-0ubuntu0.22.04.5 Β· MPL-2.0
- ubuntu noble: libnss3-tools 2:3.98-1build1 Β· MPL-2.0
- ubuntu noble: libnss3-tools 2:3.98-1ubuntu0.2
- ubuntu noble: libnss3-tools 2:3.98-1ubuntu0.3 Β· MPL-2.0
- ubuntu questing: libnss3-tools 2:3.114-1
- ubuntu questing: libnss3-tools 2:3.114-1ubuntu0.2
- ubuntu resolute: libnss3-tools 2:3.120-1ubuntu2 Β· MPL-2.0
- ubuntu resolute: libnss3-tools 2:3.120-1ubuntu2.1
- ubuntu resolute: libnss3-tools 2:3.120-1ubuntu2.2 Β· MPL-2.0
- ubuntu stonking: libnss3-tools 2:3.127-1 Β· MPL-2.0
- ubuntu stonking: libnss3-tools 2:3.127-1ubuntu0.1 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms