Skip to content

Commit

Permalink
keys.md: clarify the TSS2 private key is TPM protected
Browse files Browse the repository at this point in the history
To clarify #94.
  • Loading branch information
gotthardp committed Oct 30, 2023
1 parent 60968f0 commit c773cd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ The following encoders are supported:
| PKCS1 | DER | `-RSAPublicKey_out -outform der` |
| (null) | text | `-text -noout` |

For example, to export the X.509 SubjectPublicKeyInfo in PEM (`PUBLIC KEY`),
which is the most common public key format, do:
The `TSS2 PRIVATE KEY` file is protected by the TPM and cannot be used on another machine.

To export the X.509 SubjectPublicKeyInfo in PEM (`PUBLIC KEY`), which is the most
common public key format, do:
```
openssl pkey -provider tpm2 -provider base -in testkey.priv -pubout -out testkey.pub
```
Expand Down

0 comments on commit c773cd6

Please sign in to comment.