<refpurpose>Performs basic cryptograpic operations, such as encryption and decryption, on Cryptographic Message Syntax (CMS) messages.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>cmsutil</command>
<arg><replaceable>options</replaceable></arg>
<arg>[<replaceable>arguments</replaceable>]</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsection>
<title>STATUS</title>
<para>This documentation is still work in progress. Please contribute to the initial review in <ulinkurl="https://bugzilla.mozilla.org/show_bug.cgi?id=836477">Mozilla NSS bug 836477</ulink>
</para>
</refsection>
<refsectionid="description">
<title>Description</title>
<para>The <command>cmsutil</command> command-line uses the S/MIME Toolkit to perform basic operations, such as encryption and decryption, on Cryptographic Message Syntax (CMS) messages.
</para>
<para>
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.
</para>
</refsection>
<refsectionid="options">
<title>Options and Arguments</title>
<para>
</para>
<para><command>Options</command></para>
<para>
Options specify an action. Option arguments modify an action.
The options and arguments for the cmsutil command are defined as follows:
</para>
<variablelist>
<varlistentry>
<term>-C</term>
<listitem><para>Encrypt a message.</para></listitem>
<listitem><para>Envelope a message.</para></listitem>
</varlistentry>
<varlistentry>
<term>-O </term>
<listitem><para>Create a certificates-only message.</para></listitem>
</varlistentry>
<varlistentry>
<term>-S </term>
<listitem><para>Sign a message.</para></listitem>
</varlistentry>
</variablelist>
<para><command>Arguments</command></para>
<para>Option arguments modify an action.</para>
<variablelist>
<varlistentry>
<term>-b </term>
<listitem>
<para>Decode a batch of files named in infile.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-c content </term>
<listitem>
<para>Use this detached content (decode only).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-d dbdir</term>
<listitem>
<para>Specify the key/certificate database directory (default is ".")</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-e envfile</term>
<listitem>
<para>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).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-f pwfile</term>
<listitem>
<para>Use password file to set password on all PKCS#11 tokens.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-G</term>
<listitem>
<para>Include a signing time attribute (sign only).</para>
<para>For information about NSS and other tools related to NSS (like JSS), check out the NSS project wiki at <ulinkurl="http://www.mozilla.org/projects/security/pki/nss/">http://www.mozilla.org/projects/security/pki/nss/</ulink>. The NSS site relates directly to NSS code changes and releases.</para>
<para>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/.