default user and recipient
Laurent Jumet
laurent.jumet at skynet.be
Sun Aug 31 06:53:44 CEST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hello Herb !
Herb Burnswell <herbert.burnswell at gmail.com> wrote:
> I am new to pgp and would like to understand the minimum flags that I
> should be using for my encryption/decryption needs. I just want to encrypt
> files for decryption by one other person. We have exchanged public keys.
> I have read in several places that I can run:
> gpg -e filename
> In ~/.gnupg/gpg.conf file, I set:
> default-recipient-self
> which I assume means that the default key (I only have one) is used for
> both encryption and decryption. However, I receive:
In GPG.CONF:
default-key 0xCFAF704C
default-recipient-self
encrypt-to 0xCFAF704C
means that the default key for signature is defined; and the message or
file will be encrypted always to it too, for your personal use, otherwise you
couldn't read your own message.
If you got the public key of the other person, you need to tell GNUPG what
you want; two ways for that:
Add "-r person" on the command line
or
default-recipient person (in GPG.CONF)
- --
Laurent Jumet
KeyID: 0xCFAF704C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iHAEAREDADEFAlQCrc8qGGh0dHA6Ly93d3cucG9pbnRkZWNoYXQubmV0LzB4Q0ZB
RjcwNEMuYXNjAAoJEPUdbaDPr3BMD1cAmJywZb9anCm1GfzapKmtrl3RyF4Amwar
9PHKn6j3dXUPHnW9e1ZOxJll
=uYDX
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list