OnWorks favicon

cmsutil - Online in the Cloud

Run cmsutil in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command cmsutil that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



cmsutil - Performs basic cryptograpic operations, such as encryption and decryption, on
Cryptographic Message Syntax (CMS) messages.


cmsutil [options] [[arguments]]


This documentation is still work in progress. Please contribute to the initial review in
Mozilla NSS bug 836477[1]


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 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.

-c content
Use this detached content (decode only).

-d dbdir
Specify the key/certificate database directory (default is ".")

-e envfile
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).

-f pwfile
Use password file to set password on all PKCS#11 tokens.

Include a signing time attribute (sign only).

-H hash
Use specified hash algorithm (default:SHA1).

-h num
Generate email headers with info about CMS message (decode only).

-i infile
Use infile as a source of data (default is stdin).

Keep decoded encryption certs in permanent cert db.

-N nickname
Specify nickname of certificate to sign with (sign only).

Suppress output of contents (decode only).

-o outfile
Use outfile as a destination of data (default is stdout).

Include an S/MIME capabilities attribute.

-p password
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).

-u certusage
Set type of cert usage (default is certUsageEmailSigner).

Print debugging information.

-Y ekprefnick
Specify an encryption key preference by nickname.


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]

Use cmsutil online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Laravel is a free, open-source PHP web
    framework. Features:Expressive,
    beautiful syntax.Database agnostic
    migrationsSchema builderPainless
    routingPowerful queu...
    Download Laravel
  • 2
    nmon for Linux
    nmon for Linux
    nmon is short for Nigel's
    Performance Monitor It either shows you
    the stats on-screen updating once a
    second or saves the data to a CSV file
    for later anal...
    Download nmon for Linux
  • 3
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    Download VBA-M (Archived - Now on Github)
  • 4
    Linux System Optimizer and Monitoring
    Github Repository:
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • 5
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    Download OrangeFox
  • 6
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 7
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • More »

Linux commands