OS Manuals

/usr/bin/cmsutil

From libnss-tools 3.133-r0 (os), captured 2026-11-05 by running cmsutil --help (exit 255). permalink

Usage:  cmsutil [-C|-D|-E|-O|-S] [<options>] [-d dbdir] [-u certusage]
 -C            create a CMS encrypted data message
 -D            decode a CMS message
  -b           decode a batch of files named in infile
  -c content   use this detached content
  -n           suppress output of content
  -h num       display num levels of CMS message info as email headers
  -k           keep decoded encryption certs in perm cert db
 -E            create a CMS enveloped data message
  -r id,...    create envelope for these recipients,
               where id can be a certificate nickname or email address
 -S            create a CMS signed data message
  -G           include a signing time attribute
  -H hash      use hash (default:SHA256)
  -N nick      use certificate named "nick" for signing
  -P           include a SMIMECapabilities attribute
  -T           do not include content in CMS message
  -Y nick      include a EncryptionKeyPreference attribute with cert
                 (use "NONE" to omit)
 -O            create a CMS signed message containing only certificates
 General Options:
 -d dbdir      key/cert database directory (default: ~/.netscape)
 -e envelope   enveloped data message in this file is used for bulk key
 -i infile     use infile as source of data (default: stdin)
 -o outfile    use outfile as destination of data (default: stdout)
 -p password   use password as key db password (default: prompt)
 -f pwfile     use password file to set password on all PKCS#11 tokens)
 -u certusage  set type of certificate usage (default: certUsageEmailSigner)
 -v            print debugging information

Cert usage codes:
                           0 - certUsageSSLClient
                           1 - certUsageSSLServer
                           2 - certUsageSSLServerWithStepUp
                           3 - certUsageSSLCA
                           4 - certUsageEmailSigner
                           5 - certUsageEmailRecipient
                           6 - certUsageObjectSigner
                           7 - certUsageUserCertImport
                           8 - certUsageVerifyCA
                           9 - certUsageProtectedObjectSigner
                          10 - certUsageStatusResponder
                          11 - certUsageAnyCA
                          12 - certUsageIPsec
Options (25)
OptionDescriptionSource
-Ccreate a CMS encrypted data messagehelp
-Ddecode a CMS messagehelp
-bdecode a batch of files named in infilehelp
-c contentuse this detached contenthelp
-nsuppress output of contenthelp
-h numdisplay num levels of CMS message info as email headershelp
-kkeep decoded encryption certs in perm cert dbhelp
-Ecreate a CMS enveloped data messagehelp
-r idcreate envelope for these recipients, where id can be a certificate nickname or email addresshelp
-Screate a CMS signed data messagehelp
-Ginclude a signing time attributehelp
-H hashuse hash (default:SHA256)help
-N nickuse certificate named "nick" for signinghelp
-Pinclude a SMIMECapabilities attributehelp
-Tdo not include content in CMS messagehelp
-Y nickinclude a EncryptionKeyPreference attribute with cert (use "NONE" to omit)help
-Ocreate a CMS signed message containing only certificateshelp
-d dbdirkey/cert database directory (default: ~/.netscape)help
-e envelopeenveloped data message in this file is used for bulk keyhelp
-i infileuse infile as source of data (default: stdin)help
-o outfileuse outfile as destination of data (default: stdout)help
-p passworduse password as key db password (default: prompt)help
-f pwfileuse password file to set password on all PKCS#11 tokens)help
-u certusageset type of certificate usage (default: certUsageEmailSigner)help
-vprint debugging informationhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.