From 0999a85529156a5aa5e2ae3bca64b2b6adc81ac6 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 10 Oct 2017 14:20:17 +0300 Subject: [PATCH] gpg: add documentation for subkey generation --- doc/README-GPG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/README-GPG.md b/doc/README-GPG.md index 146e455..837b81b 100644 --- a/doc/README-GPG.md +++ b/doc/README-GPG.md @@ -110,3 +110,16 @@ retrieve the timestamp with the following command (substitute "john@doe.bit" for ``` $ gpg2 --export 'john@doe.bit' | gpg2 --list-packets | grep created | head -n1 ``` + +## GnuPG subkey generation +In order to add TREZOR-based subkey to an existing GnuPG identity, use the `--subkey` flag: +``` +$ gpg2 -k foobar +pub rsa2048/90C4064B 2017-10-10 [SC] +uid [ultimate] foobar +sub rsa2048/4DD05FF0 2017-10-10 [E] + +$ ./scripts/gpg-init "foobar" --subkey +``` + +[![asciicast](https://asciinema.org/a/JFazcJfORrz7k9DmVXknaXBfD.png)](https://asciinema.org/a/JFazcJfORrz7k9DmVXknaXBfD)