mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-25 01:41:39 +03:00
Add examples for exporting GPG keys (#907)
This chage adds examples for exporting public and private GPG keys. This is particularly useful for backing up keys. In both cases they have been output as ASCII armored text with the `--armor` flag to make the output easier to work with.
This commit is contained in:
parent
40223d8eef
commit
b78dd40547
@ -21,3 +21,11 @@
|
||||
- Import a public key:
|
||||
|
||||
`gpg --import {{public.gpg}}`
|
||||
|
||||
- Export public key for alice@example.com (output to STDOUT):
|
||||
|
||||
`gpg --export --armor {{alice@example.com}}`
|
||||
|
||||
- Export private key for alice@example.com (output to STDOUT):
|
||||
|
||||
`gpg --export-secret-keys --armor {{alice@example.com}}`
|
||||
|
Loading…
Reference in New Issue
Block a user