|
| 1 | +# Sign the key of your correspondent |
| 2 | + |
| 3 | +This guide assumes that you're familiar with the [background][background] and |
| 4 | +have [generated some keys][genkey-with-detached-identity]. |
| 5 | + |
| 6 | + |
| 7 | +## Ingredients |
| 8 | + |
| 9 | +- Insecure workstation |
| 10 | +- Secure workstation |
| 11 | +- Master keyrings on the `master` USB memory stick |
| 12 | +- Daily-use keyrings on the `keys` USB memory stick |
| 13 | +- The `unsafe` USB memory stick |
| 14 | + |
| 15 | + |
| 16 | +## Method |
| 17 | + |
| 18 | +- Copy your correspondents public key to the `unsafe` USB memory stick |
| 19 | +- Mount the USB memory sticks |
| 20 | +- Import your correspondents key into the Master keyring |
| 21 | +- Verify the fingerprint with your correspondent |
| 22 | +- Sign your correspondents key |
| 23 | +- Export the signed public key certificate of your correspondent |
| 24 | +- Import the signed public key certificate into your daily-use keyring |
| 25 | + |
| 26 | + |
| 27 | +### Copy your correspondents public key to the `unsafe` USB memory stick |
| 28 | + |
| 29 | +There are numerous ways to obtain the public key (properly, the public key |
| 30 | +certificate). Once you have it, copy it to the `unsafe` USB memory stick on |
| 31 | +your insecure workstation. In the following example the file is named |
| 32 | +`C097AC75C097AC75.asc`. |
| 33 | + |
| 34 | + |
| 35 | +### Mount the USB memory sticks |
| 36 | + |
| 37 | +On the secure workstation, [mount][mount_usb] the `master`, `keys` and `unsafe` |
| 38 | +USB memory sticks. |
| 39 | + |
| 40 | + |
| 41 | +### Import your correspondents key into the Master keyring |
| 42 | + |
| 43 | + me@box:~$ export GNUPGHOME=/media/master |
| 44 | + me@box:~$ gpg --import /media/unsafe/C097AC75C097AC75.asc |
| 45 | + gpg: key 0xC097AC75C097AC75: public key "Your Contact <[email protected]>" imported |
| 46 | + gpg: Total number processed: 1 |
| 47 | + gpg: imported: 1 |
| 48 | + |
| 49 | + |
| 50 | +### Verify the fingerprint with your correspondent |
| 51 | + |
| 52 | + me@box:~$ gpg --fingerprint -k 0xC097AC75C097AC75 |
| 53 | + pub 1024D/0xC097AC75C097AC75 2008-09-27 [expires: 2015-09-27] |
| 54 | + Key fingerprint = B452 6436 7BCD E26B F9D3 81CB C097 AC75 C097 AC75 |
| 55 | + uid [ unknown] Your Contact <[email protected]> |
| 56 | + uid [ unknown] Your Contact <[email protected]> |
| 57 | + sub 2048g/0x0COO1A5C001CA9BE 2008-09-27 [expires: 2015-12-09] |
| 58 | + |
| 59 | + |
| 60 | +### Sign your correspondents key |
| 61 | + |
| 62 | +In this operation you are certifying that one or more User IDs bound to the |
| 63 | +public key of your correspondent truly represent their identity. You do this by |
| 64 | +adding a signature, made by your Master secret key, to their public key |
| 65 | +certificate. |
| 66 | + |
| 67 | + me@box:~$ gpg -K |
| 68 | + /media/keys/secring.gpg |
| 69 | + -------------------------------- |
| 70 | + sec 4096R/0xF1829BDBB6B64480 2013-12-14 [expires: 2013-12-13] |
| 71 | + uid My Full Name <[email protected]> |
| 72 | + ssb 4096R/0xFDB32668D55D0A12 2013-12-14 |
| 73 | + ssb 4096R/0xC3897294DD857167 2013-12-14 |
| 74 | + |
| 75 | + me@box:~$ gpg --local-user 0xF1829BDBB6B64480! --sign-key 0xC097AC75C097AC75 |
| 76 | + |
| 77 | + pub 1024D/0xC097AC75C097AC75 created:2008-09-27 expires: 2015-09-27 usage: SC |
| 78 | + trust: unknown validity: unknown |
| 79 | + sub 2048g/0x0COO1A5C001CA9BE created:2008-09-27 expires: 2015-12-09 usage: E |
| 80 | + [ unknown] (1). Your Contact <[email protected]> |
| 81 | + [ unknown] (2) Your Contact <[email protected]> |
| 82 | + |
| 83 | + Really sign all user IDs? (y/N) y |
| 84 | + |
| 85 | + pub 1024D/0xC097AC75C097AC75 created:2008-09-27 expires: 2015-09-27 usage: SC |
| 86 | + trust: unknown validity: unknown |
| 87 | + Primary key fingerprint: B452 6436 7BCD E26B F9D3 81CB C097 AC75 C097 AC75 |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + This key is due to expire on 2015-09-27. |
| 93 | + Are your sure that you want to sign this key with your |
| 94 | + key "My Full Name <[email protected]>" (0xF1829BDBB6B64480) |
| 95 | + |
| 96 | + Really sign? (y/N) y |
| 97 | + |
| 98 | + You need a passphrase to unlock the secret key for |
| 99 | + user: "My Full Name <[email protected]>" |
| 100 | + 4096-bit RSA key, ID 0xF1829BDBB6B64480, created 2013-12-14 |
| 101 | + |
| 102 | + me@box:~$ |
| 103 | + |
| 104 | + |
| 105 | +### Export the signed public key certificate of your correspondent |
| 106 | + |
| 107 | +You will want to make the signed key available to your daily-use keyring so |
| 108 | +that it can be used to encrypt messages to your correspondent. You will also |
| 109 | +want to make it available on the insecure workstation so that you are able to |
| 110 | +publish the updated certificate. |
| 111 | + |
| 112 | + me@box:~$ gpg --armor --output /media/unsafe/C097AC75C097AC75_signed_by_F1829BDBB6B64480.asc --export 0xC097AC75C097AC75 |
| 113 | + me@box:~$ sudo umount /media/master |
| 114 | + |
| 115 | + |
| 116 | +### Import the signed public key certificate into your daily-use keyring |
| 117 | + |
| 118 | + me@box:~$ export GNUPGHOME=/media/keys |
| 119 | + me@box:~$ gpg --import /media/unsafe/C097AC75C097AC75_signed_by_F1829BDBB6B64480.asc |
| 120 | + gpg: key 0xC097AC75C097AC75: public key "Your Contact <[email protected]>" imported |
| 121 | + gpg: Total number processed: 1 |
| 122 | + gpg: imported: 1 |
| 123 | + gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model |
| 124 | + gpg: depth: 0 valid: 1 signed: 1 trust: 0-, 0q, 0n, 0m, 0f, 1u |
| 125 | + gpg: depth: 1 valid: 1 signed: 0 trust: 1-, 0q, 0n, 0m, 0f, 0u |
| 126 | + gpg: next trustdb check due at 2015-09-27 |
| 127 | + |
| 128 | +You're now ready to [encrypt messages for your correspondent][sign_encrypt]. |
| 129 | + |
| 130 | + |
| 131 | +[background]: background.md |
| 132 | +[genkey-with-detached-identity]: genkey-with-detached-identity.md |
| 133 | +[mount_usb]: mount_usb.md |
| 134 | +[sign_encrypt]: sign_encrypt.md |
0 commit comments