diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-07-08 14:08:38 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-07-08 14:08:38 +0200 |
commit | 60a19bacc312dc7190c65ef449505abbb09a947a (patch) | |
tree | 39517f6c7680903d709b1d23fe448cbc9fb88f71 /src/tpmtool-args.def | |
parent | 1c218b507acfc62d6af742bac192113fef119284 (diff) | |
download | gnutls-60a19bacc312dc7190c65ef449505abbb09a947a.tar.gz |
Added functionality to extract the pubkey key from a TPM key.
Added new function gnutls_pubkey_import_tpm_raw(). tpmtool can now
print the pubkey key from a TPM key.
Diffstat (limited to 'src/tpmtool-args.def')
-rw-r--r-- | src/tpmtool-args.def | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tpmtool-args.def b/src/tpmtool-args.def index a72a92131f..e933dcf966 100644 --- a/src/tpmtool-args.def +++ b/src/tpmtool-args.def @@ -7,6 +7,7 @@ short-usage = "tpmtool [options]\ntpmtool --help for usage instructions.\n"; explain = ""; #define OUTFILE_OPT 1 +#define INFILE_OPT 1 #include args-std.def flag = { @@ -16,6 +17,12 @@ flag = { }; flag = { + name = pubkey; + descrip = "Prints the public key of the provided key"; + doc = ""; +}; + +flag = { name = bits; arg-type = number; descrip = "Specify the number of bits for key generate"; @@ -36,7 +43,12 @@ doc-section = { ds-text = <<-_EOT_ To generate a public key use: @example -$ tpmtool --generate-rsa --bits 1024 +$ tpmtool --generate-rsa --bits 1024 --outfile tpmkey.pem +@end example + +To get the public key of a TPM key use: +@example +$ tpmtool --pubkey --infile tpmkey.tpm --outfile pubkey.pem @end example _EOT_; }; |