Generate subkey for signing commits
gpg --import 9719C414F2BFB666
gpg --edit-key 9719C414F2BFB666
gpg> addkey
Please select what kind of key you want:
(3) DSA (sign only)
(4) RSA (sign only)
(5) Elgamal (encrypt only)
(6) RSA (encrypt only)
(10) ECC (sign only)
(12) ECC (encrypt only)
(14) Existing key from card
Your selection? 4
gpg> save
Write key to smart card
gpg --card-status
gpg> key 1
gpg> keytocard
Delete key from current device
gpg --delete-secret-keys 9719C414F2BFB666
shred -u 9719C414F2BFB666
rm 9719C414F2BFB666
FAQ: There is no assurance this key belongs to the named user
gpg: 0BCEB1DF39464516: There is no assurance this key belongs to the named user
gpg: /dev/shm/files.HLSjpzshX9PFW/mZzQeK-protected.txt: encryption failed: Unusable public key
GPG encryption failed. Would you like to try again? [y/N]
gpg --edit-key 0BCEB1DF39464516
gpg> trust
You will be asked to select the trust level from the following:
1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu
I selected 5 since I created the key so of course I trust it ultimately :). It will ask you to confirm your decision:
Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y
After confirming, quit with:
gpg> quit
FAQ: How to publish key
gpg --send-keys 9719C414F2BFB666
gpg --send-keys --keyserver keyserver.ubuntu.com 9719C414F2BFB666
gpg --send-keys --keyserver pgp.mit.edu 9719C414F2BFB666
gpg --export 9719C414F2BFB666 | curl -T - https://keys.openpgp.org
FAQ: How to export key
gpg --export --armor --output 9719C414F2BFB666.pub 9719C414F2BFB666
gpg --export-secret-keys --armor --output 9719C414F2BFB666 9719C414F2BFB666
[back]