pkcs11-keygen.docbook revision 474faea7dd5ebbf64e0a34d70f4deb2e3f413de6
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson [<!ENTITY mdash "—">]>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - Copyright (C) 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - Permission to use, copy, modify, and/or distribute this software for any
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - purpose with or without fee is hereby granted, provided that the above
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - copyright notice and this permission notice appear in all copies.
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
b2ca1f1bd04a779f15e12e0b2bee6fa95e512f89Brian Wellington - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
9dc499f133042bb8ab6e2089db708be0d13733bfBrian Wellington - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
b2ca1f1bd04a779f15e12e0b2bee6fa95e512f89Brian Wellington - PERFORMANCE OF THIS SOFTWARE.
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <refentryinfo>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson </refentryinfo>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <refentrytitle><application>pkcs11-keygen</application></refentrytitle>
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson <refname><application>pkcs11-keygen</application></refname>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <refpurpose>generate keys on a PKCS#11 device</refpurpose>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson <refsynopsisdiv>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <arg choice="req">-a <replaceable class="parameter">algorithm</replaceable></arg>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <arg><option>-b <replaceable class="parameter">keysize</replaceable></option></arg>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <arg><option>-i <replaceable class="parameter">id</replaceable></option></arg>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <arg><option>-m <replaceable class="parameter">module</replaceable></option></arg>
5b4397d387b89d696b5eb90c328a385e07d4a380Brian Wellington <arg><option>-p <replaceable class="parameter">PIN</replaceable></option></arg>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson <arg><option>-s <replaceable class="parameter">slot</replaceable></option></arg>
1cb5d53b09cded8298285fdcdcc6a261f2b47afbBrian Wellington </cmdsynopsis>
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson </refsynopsisdiv>
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson <command>pkcs11-keygen</command> causes a PKCS#11 device to generate
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson a new key pair with the given <option>label</option> (which must be
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson unique) and with <option>keysize</option> bits of prime.
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <variablelist>
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <varlistentry>
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <term>-a <replaceable class="parameter">algorithm</replaceable></term>
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson Specify the key algorithm class: Supported classes are RSA,
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson DSA, DH, and ECC. In addition to these strings, the
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <option>algorithm</option> can be specified as a DNSSEC
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson signing algorithm that will be used with this key; for
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson example, NSEC3RSASHA1 maps to RSA, and ECDSAP256SHA256 maps
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson to ECC. The default class is "RSA".
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson </varlistentry>
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <varlistentry>
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson <term>-b <replaceable class="parameter">keysize</replaceable></term>