Skip to content

Commit

Permalink
tpm2_create.md Add example for a restricted signing key
Browse files Browse the repository at this point in the history
An example with an appropriate algorithm parameter was added.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT authored and AndreasFuchsTPM committed Dec 13, 2023
1 parent 08634a5 commit 31845c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions man/tpm2_create.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ PEM files.
```bash
tpm2_create -C primary.ctx -u obj.pub -r obj.priv -f pem -o obj.pem
```
## Create a restricted RSA signing key

For a restricted signing key the scheme and null for the symmetric algorithm must be
specified.

```bash
tpm2_create -C primary.ctx -Grsa2048:rsapss:null \
-a "fixedtpm|fixedparen|sensitivedataorigin|userwithauth|restricted|sign" \
-r obj.priv -u obj.pub
```

[returns](common/returns.md)

Expand Down

0 comments on commit 31845c7

Please sign in to comment.