pkcs11-keygen.html revision b091b4bb803b830d2d5a9e71b6648b669655d7dc
207N/A<!--
207N/A - Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
207N/A -
207N/A - Permission to use, copy, modify, and/or distribute this software for any
207N/A - purpose with or without fee is hereby granted, provided that the above
207N/A - copyright notice and this permission notice appear in all copies.
207N/A -
207N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
207N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
207N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
207N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
207N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
207N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
207N/A - PERFORMANCE OF THIS SOFTWARE.
207N/A-->
207N/A<!-- $Id: pkcs11-keygen.html,v 1.2 2009/10/05 12:13:15 fdupont Exp $ -->
207N/A<html>
207N/A<head>
207N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
207N/A<title>pkcs11-keygen</title>
928N/A<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
207N/A</head>
207N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
207N/A<a name="man.pkcs11-keygen"></a><div class="titlepage"></div>
207N/A<div class="refnamediv">
207N/A<h2>Name</h2>
207N/A<p><span class="application">pkcs11-keygen</span> &#8212; generate RSA keys on a PKCS#11 device</p>
207N/A</div>
207N/A<div class="refsynopsisdiv">
207N/A<h2>Synopsis</h2>
207N/A<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>] {-b <em class="replaceable"><code>keysize</code></em>} {-l <em class="replaceable"><code>label</code></em>} [<code class="option">-p <em class="replaceable"><code>PIN</code></em></code>]</p></div>
207N/A</div>
207N/A<div class="refsect1" lang="en">
282N/A<a name="id2543384"></a><h2>DESCRIPTION</h2>
207N/A<p>
261N/A <span><strong class="command">pkcs11-keygen</strong></span> causes a PKCS#11 device to generate
320N/A a new RSA key pair with the specified <code class="option">label</code> and
312N/A with <code class="option">keysize</code> bits of modulus.
207N/A </p>
207N/A</div>
207N/A<div class="refsect1" lang="en">
207N/A<a name="id2543403"></a><h2>ARGUMENTS</h2>
207N/A<div class="variablelist"><dl>
207N/A<dt><span class="term">-P</span></dt>
207N/A<dd><p>
207N/A Set the new private key to be non-sensitive and extractable.
207N/A The allows the private key data to be read from the PKCS#11
928N/A device. The default is for private keys to be sensitive and
928N/A non-extractable.
928N/A </p></dd>
207N/A<dt><span class="term">-m <em class="replaceable"><code>module</code></em></span></dt>
656N/A<dd><p>
207N/A Specify the PKCS#11 provider module. This must be the full
207N/A path to a shared library object implementing the PKCS#11 API
207N/A for the device.
207N/A </p></dd>
678N/A<dt><span class="term">-s <em class="replaceable"><code>slot</code></em></span></dt>
480N/A<dd><p>
207N/A Open the session with the given PKCS#11 slot. The default is
207N/A slot 0.
207N/A </p></dd>
207N/A<dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
207N/A<dd><p>
207N/A Create the key pair with <code class="option">keysize</code> bits of
207N/A modulus.
928N/A </p></dd>
207N/A<dt><span class="term">-l <em class="replaceable"><code>label</code></em></span></dt>
207N/A<dd><p>
207N/A Create key objects with the given label.
207N/A </p></dd>
207N/A<dt><span class="term">-p <em class="replaceable"><code>PIN</code></em></span></dt>
207N/A<dd><p>
207N/A Specify the PIN for the device. If no PIN is provided on the
207N/A command line, <span><strong class="command">pkcs11-keygen</strong></span> will prompt for it.
207N/A </p></dd>
1026N/A</dl></div>
207N/A</div>
207N/A<div class="refsect1" lang="en">
207N/A<a name="id2543520"></a><h2>SEE ALSO</h2>
207N/A<p>
253N/A <span class="citerefentry"><span class="refentrytitle">pkcs11-list</span>(3)</span>,
359N/A <span class="citerefentry"><span class="refentrytitle">pkcs11-destroy</span>(3)</span>
207N/A </p>
359N/A</div>
274N/A<div class="refsect1" lang="en">
320N/A<a name="id2543546"></a><h2>CAVEAT</h2>
656N/A<p>The public exponent is hard-wired to 65537.</p>
928N/A<p>The command should optionally set the object ID too.</p>
656N/A</div>
207N/A<div class="refsect1" lang="en">
207N/A<a name="id2543561"></a><h2>AUTHOR</h2>
207N/A<p><span class="corpauthor">Internet Systems Consortium</span>
207N/A </p>
207N/A</div>
207N/A</div></body>
207N/A</html>
928N/A