...
Code Block |
---|
gpg --import public.key |
Reading an encrypted message from somebody
Assume you got the message (e.g. as an email enclosure) and you copied it to your home directory as:
...
You
...
The decrypted output is written to STDOUT, here redirected to junk.
You will then need to sign the key. Before you do this you may want a list of keys in your keyring:
Code Block |
---|
113cottrell@pinger:~$gpg --list-keys /u/sf/cottrell/.gnupg/pubring.gpg --------------------------------- pub 2048R/271CF0E9 2013-09-11 uid Roger Cottrell (Les) <rlacottrell@gmail.com> sub 2048R/87C7DB76 2013-09-11 pub 2048R/0C0D6DCB 2013-09-08 uid Martin Emmerson <emmerson@telemage.com> sub 2048R/9993A460 2013-09-08 |
...
Code Block |
---|
114cottrell@pinger:~$gpg --sign-key 'Martin Emmerson'
pub 2048R/0C0D6DCB created: 2013-09-08 expires: never usage: SC
trust: unknown validity: unknown
sub 2048R/9993A460 created: 2013-09-08 expires: never usage: E
[ unknown] (1). Martin Emmerson <emmerson@telemage.com>
pub 2048R/0C0D6DCB created: 2013-09-08 expires: never usage: SC
trust: unknown validity: unknown
Primary key fingerprint: F61E 0D6F F7E8 16E1 C776 01C0 8470 9956 0C0D 6DCB
Martin Emmerson <emmerson@telemage.com>
Are you sure that you want to sign this key with your
key "Roger Cottrell (Les) <rlacottrell@gmail.com>" (271CF0E9)
Really sign? (y/N) y
You need a passphrase to unlock the secret key for
user: "Roger Cottrell (Les) <rlacottrell@gmail.com>"
2048-bit RSA key, ID 271CF0E9, created 2013-09-11
can't connect to `/u/sf/cottrell/.gnupg/S.gpg-agent': No such file or directory
|
Reading an encrypted message from somebody
Assume you got the message (e.g. as an email enclosure) and you copied it to your home directory as:
Code Block |
---|
203cottrell@wanmon:~$gpg -d msg-from-martin.asc >! junk
You need a passphrase to unlock the secret key for
user: "Roger Cottrell (Les) <rlacottrell@gmail.com>"
2048-bit RSA key, ID 87C7DB76, created 2013-09-11 (main key ID 271CF0E9)
gpg: encrypted with 2048-bit RSA key, ID 87C7DB76, created 2013-09-11
"Roger Cottrell (Les) <rlacottrell@gmail.com>"
|
The decrypted output is written to STDOUT, here redirected to junk.