Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:howtos:gpg [2016/01/23 18:57] – [Further Reading] prometheus | projects:howtos:gpg [2016/03/08 00:01] (current) – [Further Reading] prometheus | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to generate a GPG Master | + | ====== How to generate a GPG Key with multiple uids & subkeys? ====== |
+ | |||
+ | <note warning> | ||
===== Requirements ===== | ===== Requirements ===== | ||
Line 7: | Line 9: | ||
Download the latest [[https:// | Download the latest [[https:// | ||
- | <sxh bash> | + | <sxh bash;gutter: false> |
~$: dd if=archlinux-$VERSION-dual.iso of=/ | ~$: dd if=archlinux-$VERSION-dual.iso of=/ | ||
</ | </ | ||
Line 21: | Line 23: | ||
</ | </ | ||
- | <sxh bash> | + | <sxh bash;gutter: false> |
~$: echo " | ~$: echo " | ||
</ | </ | ||
Line 27: | Line 29: | ||
===== Generating the master key ===== | ===== Generating the master key ===== | ||
- | <sxh bash> | + | <sxh bash;gutter: false> |
~$: gpg2 --expert --full-gen-key | ~$: gpg2 --expert --full-gen-key | ||
- | # 9 | + | # 10 |
- | # 7 | + | # 1 |
+ | # y | ||
# 0 | # 0 | ||
# y | # y | ||
Line 43: | Line 46: | ||
===== Generating the sub keys to your master key ===== | ===== Generating the sub keys to your master key ===== | ||
+ | <sxh bash; | ||
+ | ~$: gpg2 --expert --edit-key $KEYID | ||
+ | gpg> addkey | ||
+ | # 8 | ||
+ | # Q | ||
+ | # 4096 | ||
+ | # 1y | ||
+ | # y | ||
+ | # y | ||
+ | # T | ||
+ | gpg> save | ||
+ | </ | ||
+ | ===== Removing the primary key ===== | ||
+ | <sxh bash; | ||
+ | ~$: gpg -K | ||
+ | ~$: gpg -a --export-secret-subkeys $KEYID > 0x$KEYID-secret.subkeys.gpg | ||
+ | ~$: gpg --delete-secret-keys $KEYID | ||
+ | # y | ||
+ | # y | ||
+ | # D | ||
+ | # D | ||
+ | # D | ||
+ | </ | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- | * Error while generating key? | + | ==== Error while generating key? ==== |
If you get the following error while the key generation: | If you get the following error while the key generation: | ||
Line 59: | Line 85: | ||
it means your gpg-agent isn't running. | it means your gpg-agent isn't running. | ||
+ | ==== ECC key not successfully uploaded to keyserver ==== | ||
+ | |||
+ | Consider [[http:// | ||
===== FAQ ===== | ===== FAQ ===== | ||
Line 70: | Line 99: | ||
===== Further Reading ===== | ===== Further Reading ===== | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | Creating a new GPG key]] | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
Annoyances and How-Tos: “gpg: problem with the agent: No pinentry” — SOLVED]] | Annoyances and How-Tos: “gpg: problem with the agent: No pinentry” — SOLVED]] | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// |