recieving/updating Public Keys from SKS keyserver to pubring.gpg

Prasanth Thandra prasanth_thandra at
Thu Aug 5 08:07:27 CEST 2010


Thanks for the help. the commands suggested gave the following error messages.
> When a user
> receives an encrypted mail from his peer ... he is able
> to read the mail only after receiving the KEY of sender
> to his pubring.gpg .

Not quite right, but Faramir has already addressed this point.

> But the problem here is each user has to receive KEYs
> of all the other one after another....which i dont think
> is the correct way. ???????

It would be the usual way to download keys from the server as needed.

> is there any way of receiving
> all the Public-keys that are available with the local SKS
> keyserver ???????

If all the keys on your local server have a common string in the
user-id, this would be trivial. Let's assume the common string is
"@domain.example" and try issuing the command

gpg --keyserver hkp://localhost --recv-key @domain.example

^^[root at localhost ~]# gpg --keyserver hkp://localhost --recv-key @localhost
^^gpg: skipping invalid key ID "@localhost"# by questioner#

Doesn't that fetch all keys on that server containing that string?

Or maybe "gpg --fetch-keys hkp://localhost" might do it?

^^[root at localhost ~]# gpg --fetch-keys hkp://localhost
^^gpg: Invalid option "--fetch-keys" # by questioner#

> if it is ?? how to update users
> pubring.gpg periodically

Put the required commands in a batch file and schedule it to be run
periodically, perhaps?

> or  when ever a new KEY is
> received by the KEYSERVER? Please help me..

"--auto-key-locate [parameters]" could be used to fetch new keys as
needed, rather than as soon as posted to the server
^^ i have added the line keyserver-options --auto-key-locate ^^ in my ~/.gnupg/gpg.conf file
i have to see how it works

- --
Best regards

MFPA                    mailto:expires2010 at

Wisdom is a companion to age; yet age may travel alone.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20100805/c4a7407b/attachment.htm>

More information about the Gnupg-users mailing list