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/25 03:09] – [Disk Image] 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> | <note warning> | ||
Line 9: | Line 9: | ||
Download the latest [[https:// | Download the latest [[https:// | ||
- | <sxh bash[; gutter: false]> | + | <sxh bash; |
~$: 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 |
+ | # y | ||
# 0 | # 0 | ||
# y | # y | ||
Line 45: | Line 46: | ||
===== 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 61: | ||
===== 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 73: | ||
===== 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 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 95: | Line 99: | ||
===== Further Reading ===== | ===== Further Reading ===== | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | Creating a new GPG key]] | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
Line 103: | Line 112: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// |