Get gpg to use keyring files in the current directory
Steve Butler
sbutler at fchn.com
Wed Dec 16 18:30:18 CET 2015
Either set --homedir on the command line or in the options file.
-----Original Message-----
From: Gnupg-users [mailto:gnupg-users-bounces at gnupg.org] On Behalf Of Jarle Hammen Knudsen
Sent: Wednesday, December 16, 2015 8:19 AM
To: Gnupg-users at gnupg.org
Subject: Get gpg to use keyring files in the current directory
I'm trying to get gpg to create and use keyryring files in the current directory.
In e:\test I have this options file named test.conf :
utf8-strings
no-default-keyring
keyring test-public.keyring
secret-keyring test-secret.keyring
If I cd to e:\test and use this command line:
gpg --gen-key --options test.conf
the keyrings are not created in the current directory, but in C:\Users\username\AppData\Roaming\gnupg
The options file is read, since the keyring files use the specified names.
I'm using gpg to encrypt small backup files which will be decrypted by non-tech-savvy users that do not usually use gpg. I'm going to store the keyrings ready for use on a USB-stick and will not know the absolute path to the keyfiles.
Any suggestions?
gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0)
Windows 10
_______________________________________________
Gnupg-users mailing list
Gnupg-users at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
--
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
More information about the Gnupg-users
mailing list