1PKCS11-KEYGEN(8) BIND9 PKCS11-KEYGEN(8)
2
3
4
6 pkcs11-keygen - generate keys on a PKCS#11 device
7
9 pkcs11-keygen {-a algorithm} [-b keysize] [-e] [-i id] [-m module] [-P]
10 [-p PIN] [-q] [-S] [-s slot] {label}
11
13 pkcs11-keygen causes a PKCS#11 device to generate a new key pair with
14 the given label (which must be unique) and with keysize bits of prime.
15
17 -a algorithm
18 Specify the key algorithm class: Supported classes are RSA, DSA,
19 DH, ECC and ECX. In addition to these strings, the algorithm can be
20 specified as a DNSSEC signing algorithm that will be used with this
21 key; for example, NSEC3RSASHA1 maps to RSA, ECDSAP256SHA256 maps to
22 ECC, and ED25519 to ECX. The default class is "RSA".
23
24 -b keysize
25 Create the key pair with keysize bits of prime. For ECC keys, the
26 only valid values are 256 and 384, and the default is 256. For ECX
27 kyes, the only valid values are 256 and 456, and the default is
28 256.
29
30 -e
31 For RSA keys only, use a large exponent.
32
33 -i id
34 Create key objects with id. The id is either an unsigned short 2
35 byte or an unsigned long 4 byte number.
36
37 -m module
38 Specify the PKCS#11 provider module. This must be the full path to
39 a shared library object implementing the PKCS#11 API for the
40 device.
41
42 -P
43 Set the new private key to be non-sensitive and extractable. The
44 allows the private key data to be read from the PKCS#11 device. The
45 default is for private keys to be sensitive and non-extractable.
46
47 -p PIN
48 Specify the PIN for the device. If no PIN is provided on the
49 command line, pkcs11-keygen will prompt for it.
50
51 -q
52 Quiet mode: suppress unnecessary output.
53
54 -S
55 For Diffie-Hellman (DH) keys only, use a special prime of 768, 1024
56 or 1536 bit size and base (aka generator) 2. If not specified, bit
57 size will default to 1024.
58
59 -s slot
60 Open the session with the given PKCS#11 slot. The default is slot
61 0.
62
64 pkcs11-destroy(8), pkcs11-list(8), pkcs11-tokens(8), dnssec-
65 keyfromlabel(8)
66
68 Internet Systems Consortium, Inc.
69
71 Copyright © 2009, 2014-2021 Internet Systems Consortium, Inc. ("ISC")
72
73
74
75ISC 2014-01-15 PKCS11-KEYGEN(8)