1tss2_sign(1)                General Commands Manual               tss2_sign(1)
2
3
4

NAME

6       tss2_sign(1) -
7

SYNOPSIS

9       tss2_sign [OPTIONS]
10

DESCRIPTION

12       tss2_sign(1)  - This command uses a key inside the TPM to sign a digest
13       value.
14

OPTIONS

16       These are the available options:
17
18       · -p, --keyPath STRING:
19
20         The path to the signing key.
21
22       · -s, --padding STRING:
23
24         The padding scheme used.  Possible values  are  “RSA_SSA”,  “RSA_PSS”
25         (case  insensitive).   Optional  parameter.   If omitted, the default
26         padding specified in the crypto profile is used.
27
28       · -c, --certificate FILENAME or - (for stdout):
29
30         The certificate associated with keyPath in PEM format.  Optional  pa‐
31         rameter.
32
33       · -d, --digest FILENAME or - (for stdin):
34
35         The data to be signed, already hashed.
36
37       · -f, --force:
38
39         Force overwriting the output file.
40
41       · -k, --publicKey FILENAME or - (for stdout):
42
43         The  public  key associated with keyPath in PEM format.  Optional pa‐
44         rameter.
45
46       · -o, --signature FILENAME or - (for stdout):
47
48         Returns the signature in binary form.
49

COMMON OPTIONS

51       This collection of options are common to all tss2 programs and  provide
52       information that many users may expect.
53
54       · -h,  --help  [man|no-man]: Display the tools manpage.  By default, it
55         attempts to invoke the manpager for the  tool,  however,  on  failure
56         will  output  a short tool summary.  This is the same behavior if the
57         “man” option argument is specified, however if explicit “man” is  re‐
58         quested,  the  tool  will  provide errors from man on stderr.  If the
59         “no-man” option if specified, or the manpager fails,  the  short  op‐
60         tions will be output to stdout.
61
62         To  successfully use the manpages feature requires the manpages to be
63         installed or on MANPATH, See man(1) for more details.
64
65       · -v, --version: Display version information for this  tool,  supported
66         tctis and exit.
67

EXAMPLE

69              tss2_sign --keyPath HS/SRK/myRSASign --padding "RSA_PSS" --digest digest.file --signature signature.file --publicKey publicKey.file
70

RETURNS

72       0 on success or 1 on failure.
73

BUGS

75       Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
76

HELP

78       See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
79
80
81
82tpm2-tools                        APRIL 2019                      tss2_sign(1)
Impressum