[Enigmail] How to use PGP-keys in non-default location

LeRoy Cressy ldc at lrcressy.com
Tue Feb 5 14:28:41 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Arsen HAYRAPETYAN wrote:
> Hello,
> 
> I am using Mozilla Thunderbird version 1.5.0.12 with Enigmail 0.94 and
> GnuPG 1.4.3 on Scientific Linux and I am facing the following problem.
> I have PGP keyrings (secret and public) generated using GnuPG
> command-line interface, they are kept in some directory in my
> filesystem. This directory IS NOT the default ~/.gnupg directory. I
> don't want it to be the default ~/.gnupg girectory, because later is
> kept on AFS system, and I prefer to keep my keys on the local disc.
> When I am trying to sign the e-mail message with PGP key using Enigmail,
> I get the error, it seems that Enigmail searches for PGP key to sign
> with in default location (~/.gnupg). How can I point Enigmail to other
> location in my filesystem to search the keys for?
> 
There are several ways to accomplish this.  The easiest might be to
create symlinks in ~/.gnupg/ to the locally mounted disc.

Another way is to edit ~/.gnupg/gpg.conf

this is a small portion of the gpg man page.

       --keyring file
              Add  file to the current list of keyrings. If file begins
              with a tilde and a slash, these are replaced by the $HOME
              directory.  If  the filename does not contain a slash, it
              is assumed to be in the GnuPG home directory  ("~/.gnupg"
              if --homedir or $GNUPGHOME is not used).

              Note that this adds a keyring to the current list. If the
              intent  is  to  use  the  specified  keyring  alone,  use
              --keyring along with --no-default-keyring.

       --secret-keyring file
              Same as --keyring but for the secret keyrings.

       --primary-keyring file
              Designate  file as the primary public keyring. This means
              that newly  imported  keys  (via  --import  or  keyserver
              --recv-from) will go to this keyring.




> Many thanks in advance,
> Arsen.
> _______________________________________________
> Enigmail mailing list
> Enigmail at mozdev.org
> https://www.mozdev.org/mailman/listinfo/enigmail
> 
> 


- --
 Rev. LeRoy D. Cressy  mailto:leroy at lrcressy.com   /\_/\
                       http://lrcressy.com        ( o.o )
                       Phone:  215-535-4037        > ^ <

gpg fingerprint:  62DE 6CAB CEE1 B1B3 359A  81D8 3FEF E6DA 8501 AFEA

For info on enigmail:    http://lrcressy.com/linux/mozilla.pdf
For info on gpg:         http://www.gnupg.org/

Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me. (John 14:6)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBR6jiCnlsxrSGsIsqAQjeXRAA239mN270g87Umu+qGilIkzN10eikfS4R
tHX3Sl57H8liS4duK4UZW9Ndo6N6V+1+NPuPRrSfZzKW7ARSjI596aXEddokPZ+G
ank/DH7DgkMhVmwv1ztq2Hxa/o7NrjAUVCkz8JYq6af7ZKG0du+jNDDpZRe5V6Ji
VShCEJ2OUpvG2oavIZkPzGhjz//wTcwiRtyHm8Aalm8vVo93DHQu2d4zPA63AYDF
0lpdegguc+ejcnry0FPvWFZhZNynUhltkbaW6OAUaD1eErkOzmPI4lVXjpsBfljB
aQMjyPs0AXC3zk21vyNNRMC4RyRsw+rBn9kQwMElgzd9Y0Er0Fp7936bHECQeQ/h
K9/JAZc3MDal1Rd8uWe949EkUr4dYPeEjk9gvNChnOPwvgu+NNVEPTzdnIrgD3wg
uWzvqzGNDPLHFhnaNAfBQLkMmanyJH8IqG0zrAEd2zn7JqOMc0Rzc9h3a+huBFi9
v3rC7TpTwzzbznLHxnw8MB4l8xmd5hGlEJ+amSLAiT5aW+YP+Ue6aw+DdPV11kmu
BhjKzTw8pggGK1F92XkkwqtrJ232NLZfEb+nn5VsEp06k9h74TSGGNQszHpkQfjL
FHAARFTAXZ2Urb9GNVlYVURQnYTUQ9f/uCwGygkLzxLf/tDJljT3wGDzwt6LPWvA
/Hq1C4ulmQw=
=tQR2
-----END PGP SIGNATURE-----


More information about the Enigmail mailing list