TPM key generation allows for arbitrary RSA key bits, but quantizes them to the minim...
[gnutls.git] / src / tpmtool-args.def
blob37a7abdc3304fdf09c6242b955f25861f9a76b95
1 AutoGen Definitions options;
2 prog-name = tpmtool;
3 prog-title = "GnuTLS TPM tool";
4 prog-desc = "Program to handle TPM as a cryptographic device.\n";
5 detail = "Program that allows handling cryptographic data from the TPM chip.";
6 short-usage = "tpmtool [options]\ntpmtool --help for usage instructions.\n";
7 explain = "";
9 #define OUTFILE_OPT 1
10 #define INFILE_OPT 1
11 #include args-std.def
13 flag = {
14 name = generate-rsa;
15 descrip = "Generate an RSA private-public key pair";
16 doc = "Generates an RSA private-public key pair on the specified token.";
19 flag = {
20 name = pubkey;
21 descrip = "Prints the public key of the provided key";
22 doc = "";
25 flag = {
26 name = sec-param;
27 arg-type = string;
28 arg-name = "Security parameter";
29 descrip = "Specify the security level [low, legacy, normal, high, ultra].";
30 doc = "This is alternative to the bits option.";
33 flag = {
34 name = bits;
35 arg-type = number;
36 descrip = "Specify the number of bits for key generate";
37 doc = "";
40 doc-section = {
41 ds-type = 'SEE ALSO';
42 ds-format = 'texi';
43 ds-text = <<-_EOT_
44 p11tool (1), certtool (1)
45 _EOT_;
48 doc-section = {
49 ds-type = 'EXAMPLES';
50 ds-format = 'texi';
51 ds-text = <<-_EOT_
52 To generate a public key use:
53 @example
54 $ tpmtool --generate-rsa --sec-param normal --outfile tpmkey.pem
55 @end example
57 To get the public key of a TPM key use:
58 @example
59 $ tpmtool --pubkey --infile tpmkey.tpm --outfile pubkey.pem
60 @end example
61 _EOT_;