pkcs11-keygen.html revision e74245134d71795065fe4940eea5307b1bb9c488
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - copyright notice and this permission notice appear in all copies.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed - PERFORMANCE OF THIS SOFTWARE.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<!-- $Id: pkcs11-keygen.html,v 1.4 2009/10/06 04:40:14 tbox Exp $ -->
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<a name="man.pkcs11-keygen"></a><div class="titlepage"></div>
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User<p><span class="application">pkcs11-keygen</span> — generate RSA keys on a PKCS#11 device</p>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<div class="cmdsynopsis"><p><code class="command">pkcs11-keygen</code> [<code class="option">-P</code>] [<code class="option">-m <em class="replaceable"><code>module</code></em></code>] [<code class="option">-s <em class="replaceable"><code>slot</code></em></code>] [<code class="option">-e</code>] {-b <em class="replaceable"><code>keysize</code></em>} {-l <em class="replaceable"><code>label</code></em>} [<code class="option">-i <em class="replaceable"><code>id</code></em></code>] [<code class="option">-p <em class="replaceable"><code>PIN</code></em></code>]</p></div>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed <span><strong class="command">pkcs11-keygen</strong></span> causes a PKCS#11 device to generate
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed a new RSA key pair with the specified <code class="option">label</code> and
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed with <code class="option">keysize</code> bits of modulus.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt Set the new private key to be non-sensitive and extractable.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed The allows the private key data to be read from the PKCS#11
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed device. The default is for private keys to be sensitive and
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed non-extractable.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<dt><span class="term">-m <em class="replaceable"><code>module</code></em></span></dt>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Specify the PKCS#11 provider module. This must be the full
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed path to a shared library object implementing the PKCS#11 API
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed for the device.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<dt><span class="term">-s <em class="replaceable"><code>slot</code></em></span></dt>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Open the session with the given PKCS#11 slot. The default is
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Use a large exponent.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Create the key pair with <code class="option">keysize</code> bits of
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<dt><span class="term">-l <em class="replaceable"><code>label</code></em></span></dt>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Create key objects with the given label.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt This name must be unique.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<dt><span class="term">-i <em class="replaceable"><code>id</code></em></span></dt>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Create key objects with id. The id is either
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed an unsigned short 2 byte or an unsigned long 4 byte number.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<dt><span class="term">-p <em class="replaceable"><code>PIN</code></em></span></dt>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed Specify the PIN for the device. If no PIN is provided on the
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed command line, <span><strong class="command">pkcs11-keygen</strong></span> will prompt for it.
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed <span class="citerefentry"><span class="refentrytitle">pkcs11-list</span>(3)</span>,
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed <span class="citerefentry"><span class="refentrytitle">pkcs11-destroy</span>(3)</span>,
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed <span class="citerefentry"><span class="refentrytitle">dnssec-keyfromlabel</span>(3)</span>,
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<p>Some PKCS#11 providers crash with big public exponent.</p>
6db1357c34f26079dc2516b02d712df228e3db99Jeremy Reed<p><span class="corpauthor">Internet Systems Consortium</span>