I'm confused about GPG, and it's confused about me

Juan Miguel Navarro Martínez juanmi.3000 at gmail.com
Tue Jan 17 22:26:17 CET 2017


On 2017-01-17 at 21:09, Reid Vail wrote:
> rsv2 at rsv2-Serval-Pro ~ $ gpg --clearsign --local-user --default-key encryption\ test
> 
You are telling GnuPG to clear sign a file called "encryption test" with
a local key that has a User ID (UID) containing "--default-key".

Try using:

    gpg --clearsign --local-user
0x3A74A1DB2C796657D14BA6B83EDE6A3226F66FEB encryption\ test

or, this one if you use the other key:

    gpg --clearsign --local-user
0x1F356DC33182016A8E59E5099A72F153A780EFF6 encryption\ test

Same fron encryption:

    Key 1: gpg --armor --encrypt --recipient
0x3A74A1DB2C796657D14BA6B83EDE6A3226F66FEB encryption\ test

    Key 2: gpg --armor --encrypt --recipient
0x1F356DC33182016A8E59E5099A72F153A780EFF6 encryption\ test

Normally, you use "default-key" as an option in gpg.conf (usually on
~/.gnupg/) like this:

default-key 0xDEADBEEF

Where DEADBEEF is your master key keyID or, more secure yet, fingerprint
(like I did above).

-- 
Juan Miguel Navarro Martínez

GPG Keyfingerprint:
5A91 90D4 CF27 9D52 D62A
BC58 88E2 947F 9BC6 B3CF

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20170117/7c8133de/attachment.sig>


More information about the Gnupg-users mailing list