Skip to content

Commit

Permalink
Add documention for --exportpubkey and --nolocalkeys to Signing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett authored and danielinux committed Nov 13, 2024
1 parent f9cbc57 commit 6d1adc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ to ensure that the dependencies are met.
Usage: `keygen [OPTIONS] [-g new-keypair.der] [-i existing-pubkey.der] [...]`

`keygen` is used to populate a keystore with existing and new public keys.
Two options are supported:
The following options are supported:

- `-g privkey.der` to generate a new keypair, add the public key to the keystore and save the private key in a new file `privkey.der`
- `-i existing.der` to import an existing public key from `existing.der`
- `--der` save generated private key in DER format.
- `--exportpubkey` to export the public key (corresponding to the private key generated with `-g`) to a DER file. This option only has an effect if used in conjunction with the `-g` option.
- `--nolocalkeys` to generate a keystore entry with zeroized key material. This option is only useful on platforms that support using an external key by reference, such as wolfHSM. Only has an effect if used in conjunction with the `-g` option.

Arguments are not exclusive, and can be repeated more than once to populate a keystore with multiple keys.

Expand Down

0 comments on commit 6d1adc2

Please sign in to comment.