Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
projects:howtos:gpg [2016/01/23 19:25] – [Removing the primary key] prometheus | projects:howtos:gpg [2016/02/12 16:49] – [Generating the master key] prometheus | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to generate a GPG Master | + | ====== How to generate a GPG Key with multiple uids & subkeys? ====== |
<note warning> | <note warning> | ||
Line 9: | 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 23: | Line 23: | ||
</ | </ | ||
- | <sxh bash> | + | <sxh bash;gutter: false> |
~$: echo " | ~$: echo " | ||
</ | </ | ||
Line 29: | 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 |
- | # 0 | + | |
# y | # y | ||
+ | # 0 | ||
# Real NAME | # Real NAME | ||
# E-Mail Address | # E-Mail Address | ||
Line 45: | Line 45: | ||
===== Generating the sub keys to your master key ===== | ===== Generating the sub keys to your master key ===== | ||
- | <sxh bash> | + | <sxh bash;gutter: false> |
~$: gpg2 --expert --edit-key $KEYID | ~$: gpg2 --expert --edit-key $KEYID | ||
gpg> addkey | gpg> addkey | ||
Line 60: | Line 60: | ||
===== Removing the primary key ===== | ===== Removing the primary key ===== | ||
- | <sxh bash> | + | <sxh bash;gutter: false> |
~$: gpg -K | ~$: gpg -K | ||
~$: gpg -a --export-secret-subkeys $KEYID > 0x$KEYID-secret.subkeys.gpg | ~$: gpg -a --export-secret-subkeys $KEYID > 0x$KEYID-secret.subkeys.gpg | ||
Line 72: | Line 72: | ||
===== 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 84: | Line 84: | ||
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 95: | Line 98: | ||
===== 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:// |