These instructions are base on: https://github.com/drduh/YubiKey-Guide
As you will need to use copy and paste in
screen
to copypassphrase
remember that keybindings areCtrl+a [
andCtrl+a]
nix-profiles
repo.dd
mmcblk0
)/mnt/enc
/mnt/plain
gpg --gen-random -a 0 24 > /mnt/enc/gpg/gatehub/passphrase
gpg --expert --full-generate-key
export KEYID=0xFF3E7D88647EBCDB
gpg --expert --edit-key
addkey
addkey
addkey
$ gpg -K /tmp.FLZC0xcM/pubring.kbx --------------------------------—--------------------------------------- sec rsa4096/0xFF3E7D88647EBCDB 2017-10-09 [C] Key fingerprint = 011C E16B D45B 27A5 5BA8 776D FF3E 7D88 647E BCDB uid Dr Duh <[email protected]> ssb rsa4096/0xBECFA3C1AE191D15 2017-10-09 [S] [expires: 2018-10-09] ssb rsa4096/0x5912A795E90DD2CF 2017-10-09 [E] [expires: 2018-10-09] ssb rsa4096/0x3F29127E79649A3D 2017-10-09 [A] [expires: 2018-10-09]
gpg --armor --export-secret-keys $KEYID > /mnt/enc/gpg/project/mastersub.key
gpg —armor --export-secret-subkeys $KEYID > /mnt/env/project/sub.key
gpg --armor --export $KEYID | tee /mnt/public/$KEYID-$(date +%F).txt