1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
7 - Permission to use, copy, modify, and/or distribute this software for any
8 - purpose with or without fee is hereby granted, provided that the above
9 - copyright notice and this permission notice appear in all copies.
11 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 - PERFORMANCE OF THIS SOFTWARE.
20 <!-- Id: pkcs11-keygen.docbook,v 1.3 2009/10/05 12:23:11 fdupont Exp -->
21 <refentry id="man.pkcs11-keygen">
23 <date>Sep 18, 2009</date>
27 <refentrytitle><application>pkcs11-keygen</application></refentrytitle>
28 <manvolnum>8</manvolnum>
29 <refmiscinfo>BIND9</refmiscinfo>
33 <refname><application>pkcs11-keygen</application></refname>
34 <refpurpose>generate RSA keys on a PKCS#11 device</refpurpose>
40 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
46 <command>pkcs11-keygen</command>
47 <arg><option>-P</option></arg>
48 <arg><option>-m <replaceable class="parameter">module</replaceable></option></arg>
49 <arg><option>-s <replaceable class="parameter">slot</replaceable></option></arg>
50 <arg><option>-e</option></arg>
51 <arg choice="req">-b <replaceable class="parameter">keysize</replaceable></arg>
52 <arg choice="req">-l <replaceable class="parameter">label</replaceable></arg>
53 <arg><option>-i <replaceable class="parameter">id</replaceable></option></arg>
54 <arg><option>-p <replaceable class="parameter">PIN</replaceable></option></arg>
59 <title>DESCRIPTION</title>
61 <command>pkcs11-keygen</command> causes a PKCS#11 device to generate
62 a new RSA key pair with the specified <option>label</option> and
63 with <option>keysize</option> bits of modulus.
68 <title>ARGUMENTS</title>
74 Set the new private key to be non-sensitive and extractable.
75 The allows the private key data to be read from the PKCS#11
76 device. The default is for private keys to be sensitive and
83 <term>-m <replaceable class="parameter">module</replaceable></term>
86 Specify the PKCS#11 provider module. This must be the full
87 path to a shared library object implementing the PKCS#11 API
94 <term>-s <replaceable class="parameter">slot</replaceable></term>
97 Open the session with the given PKCS#11 slot. The default is
107 Use a large exponent.
113 <term>-b <replaceable class="parameter">keysize</replaceable></term>
116 Create the key pair with <option>keysize</option> bits of
123 <term>-l <replaceable class="parameter">label</replaceable></term>
126 Create key objects with the given label.
127 This name must be unique.
133 <term>-i <replaceable class="parameter">id</replaceable></term>
136 Create key objects with id. The id is either
137 an unsigned short 2 byte or an unsigned long 4 byte number.
143 <term>-p <replaceable class="parameter">PIN</replaceable></term>
146 Specify the PIN for the device. If no PIN is provided on the
147 command line, <command>pkcs11-keygen</command> will prompt for it.
155 <title>SEE ALSO</title>
158 <refentrytitle>pkcs11-list</refentrytitle><manvolnum>3</manvolnum>
161 <refentrytitle>pkcs11-destroy</refentrytitle><manvolnum>3</manvolnum>
164 <refentrytitle>dnssec-keyfromlabel</refentrytitle><manvolnum>3</manvolnum>
170 <title>CAVEAT</title>
171 <para>Some PKCS#11 providers crash with big public exponent.</para>
175 <title>AUTHOR</title>
176 <para><corpauthor>Internet Systems Consortium</corpauthor>