Can't find public key during encryption

Henry Hertz Hobbit hhhobbit7 at
Sat Jun 11 00:00:55 CEST 2005

>Message: 4
>Date: Wed, 8 Jun 2005 09:54:11 -0400
>From: "Jenkins, Brian P." <BPJenkins at>
>Subject: Can't find public key during encryption
>To: <gnupg-users at>
>    <4B6F5BB312714143950685B28BAD226233A7A8 at>
>Content-Type: text/plain;   charset="us-ascii"
>I run GPG 1.2.4 on a windows cluster using one of 3 users.  All users
>except for 1 work fine on either node.  The failing user works on one
>node of the cluster but not the other.  I verified that the registry
>settings for 
>are the same for all users.  I get the error below, of course only on
>The failure is below.  Why is GPG looking to the C: drive for this
>\\presto\bin\gnupg\gpg -o tradeint_dial.2005060716424957.pgp -r mondrian
>--yes --always-trust -e tradeint_dial.2005060716424957  
>gpg: keyblock resource `c:/gnupg\secring.gpg': file open error
>gpg: keyblock resource `c:/gnupg\pubring.gpg': file open error
>gpg: mondrian: skipped: public key not found
>gpg: tradeint_dial.2005060716424957: encryption failed: public key not
>Brian Jenkins


I suspect that the [HKEY_CURRENT_USER\Software\GNU\GNUPG] key
on one of the machines (you said cluster but intimated that it
consisted of only two machines) is wrong.  You must have a
separate key for each machine since each machine has their
own registry.  The only thing that is hard coded in the source
code is for a failure of the GetTempPath() function in
g10\exec.c file:

/* lines 140...145 */
#if defined (_WIN32)

If the registry key isn't the problem, then I suspect the
gpg.conf file is either different or not there on the one
machine and user you are having problems with.


Henry Hertz Hobbit
Key Name:  "Henry Hertz Hobbit" <hhhobbit at>
pub   1024D/E1FA6C62 2005-04-11 [expires: 2006-04-11]
Key fingerprint = ACA0 B65B E20A 552E DFE2 EE1D 75B9 D818 E1FA 6C62

Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at

More information about the Gnupg-users mailing list