You are not logged in.

#1 2020-10-24 08:35:53

Straight-path
Banned
Registered: 2020-06-28
Posts: 66

[SOLVED] gnupg question/help with the configuration section

I need help in understanding the wiki.

Wiki wrote:

Directory location

$GNUPGHOME

is used by GnuPG to point to the directory where its configuration files are stored. By default

$GNUPGHOME

is not set and your

$HOME

is used instead; thus, you will find a

~/.gnupg

directory right after installation.
To change the default location, either run gpg this way

$ gpg --homedir path/to/file

or set the

GNUPGHOME

environment variable.

export GNUPGHOME="${GNUPGHOME}:/etc/.gnupg  add it to: ~/.bash_profile

Is the above the correct way to set the environment variable? and will that create a config file for gnupg in

/etc.gnupg

and set that as the default location for gnupg? If that is correct, why is it necessary to change the directory where the configuration files are stored?


Also, I don't have these two files:

 ~/.gnupg/gpg.conf

 and 

~/.gnupg/dirmngr.conf

I'm thinking that, the first time gpg is run I'll get those two files, is that correct?

Originally I wanted to add: 

keyserver-options auto-key-retrieve

to:

gpg.conf

That's what got me started with this topic. Once I've used gpg and the skeleton files (not too sure exactly what they are) get copied to

.gnupg 

will that create the

.gnupg/gpg.conf

? If that is correct, if I then paste

keyserver-options auto-key-retrieve

to:

/.gnupg/gpg.conf

Would that then mean I won't in the future need to go hunting for keys? as

Wiki wrote:

Adding keyserver-options auto-key-retrieve to gpg.conf will automatically fetch keys from the key server as needed

I've done my utmost trying to understand the Wiki, any help would be much appreciated.

Last edited by Straight-path (2020-10-24 10:36:01)

Offline

#2 2020-10-24 09:18:15

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] gnupg question/help with the configuration section

Yup, you mostly got all right, except that you don't have to touch GNUPGHOME at all, unless you want it to live somewhere else INSIDE your user home...
/etc is not a good place for your user gpg files...


My reposSome snippets

Heisenberg might have been here.

Offline

#3 2020-10-24 09:24:50

Straight-path
Banned
Registered: 2020-06-28
Posts: 66

Re: [SOLVED] gnupg question/help with the configuration section

Are you saying that it's not necessary to change the location and I don't need to set any environment variables?

If that's the case, lol jokes for all the struggle reading etc. At least I think I learnt a few things.

Also how, lol I don't know what it means when the first time gpg is run. Does that mean the first time I try to get a gpg key?

If thats the case then I have to wait until I need to get a key so the

gpg.conf

gets generated and then I can add

keyserver-options auto-key-retrieve

so in the future I won't need to search for gpg keys?

Offline

#4 2020-10-24 09:26:09

Straight-path
Banned
Registered: 2020-06-28
Posts: 66

Re: [SOLVED] gnupg question/help with the configuration section

lol, you saying I mostly got it all right, gives me hope that I can learn from the wiki and use Arch.

Offline

#5 2020-10-24 09:39:38

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] gnupg question/help with the configuration section

Sometimes you might need to search, but it should work pretty allright...
Note that eventually you might™ need to change the keyserver, since the default is quite overloaded...

An example is:
dirmngr.conf

keyserver hkp://keys.gnupg.net

But there are other keyservers, like ubuntu's or debian, the wiki covers them, and wikipedia has an article too.
That one works ok for me in the tests. So you should be fine with that one.


My reposSome snippets

Heisenberg might have been here.

Offline

#6 2020-10-24 09:53:10

Straight-path
Banned
Registered: 2020-06-28
Posts: 66

Re: [SOLVED] gnupg question/help with the configuration section

Thank you very much. Could just confirm exactly how I get the two configuration files to be generated?

~/.gnupg/gpg.conf

and

~/.gnupg/dirmngr.conf

Offline

#7 2020-10-24 09:53:46

Straight-path
Banned
Registered: 2020-06-28
Posts: 66

Re: [SOLVED] gnupg question/help with the configuration section

I'm not too sure exactly what/how to run gpg means

Offline

#8 2020-10-24 09:57:20

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] gnupg question/help with the configuration section

The files aren’t autogenerated...
You must create the files.
The directory should be there already.

Then you add the configs with a text editor, ex: nano


My reposSome snippets

Heisenberg might have been here.

Offline

#9 2020-10-24 10:13:10

Straight-path
Banned
Registered: 2020-06-28
Posts: 66

Re: [SOLVED] gnupg question/help with the configuration section

uhah.

Lol. wicked.

good I asked. I would have been waiting a long time.

Thank you very much for your time and patience.

Offline

Board footer

Powered by FluxBB