diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-06 17:41:16 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-06 17:49:31 +0100 |
commit | 9374c2baeabe45a22e4b8746dc97f5ce4f030184 (patch) | |
tree | 5c1050ef8c95cce01dd3e062f54dcc1c30e45709 /src/nix/key-convert-secret-to-public.md | |
parent | 555152ffe8494190ca42dd481991c9b54759f686 (diff) |
Add commands for generating secret/public keys
Diffstat (limited to 'src/nix/key-convert-secret-to-public.md')
-rw-r--r-- | src/nix/key-convert-secret-to-public.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nix/key-convert-secret-to-public.md b/src/nix/key-convert-secret-to-public.md new file mode 100644 index 000000000..3adc18502 --- /dev/null +++ b/src/nix/key-convert-secret-to-public.md @@ -0,0 +1,19 @@ +R""( + +# Examples + +* Convert a secret key to a public key: + + ```console + # echo cache.example.org-0:E7lAO+MsPwTFfPXsdPtW8GKui/5ho4KQHVcAGnX+Tti1V4dUxoVoqLyWJ4YESuZJwQ67GVIksDt47og+tPVUZw== \ + | nix key convert-secret-to-public + cache.example.org-0:tVeHVMaFaKi8lieGBErmScEOuxlSJLA7eO6IPrT1VGc= + ``` + +# Description + +This command reads a Ed25519 secret key from standard input, and +writes the corresponding public key to standard output. For more +details, see [nix key generate-secret](./nix3-key-generate-secret.md). + +)"" |