Can't find public key during encryption
Henry Hertz Hobbit
hhhobbit7 at netscape.net
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 delinvest.com>
>Subject: Can't find public key during encryption
>To: <gnupg-users at gnupg.org>
>Message-ID:
> <4B6F5BB312714143950685B28BAD226233A7A8 at delpwemlphl.delinvest.ad.lfg.com>
>
>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
>[HKEY_CURRENT_USER\Software\GNU\GNUPG]
>"HomeDir"="H:\Data\bin\GnuPG"
>"gpgProgram"="H:\Data\bin\GnuPG\gpg.exe"
>"OptFile"="H:\Data\bin\GnuPG\gpg.conf"
>
>are the same for all users. I get the error below, of course only on
>encryption.
>
>The failure is below. Why is GPG looking to the C: drive for this
>operation?
>
>
>\\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
>found
>
>Thanks,
>Brian Jenkins
>
Brian:
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(tmp==NULL)
{
#if defined (_WIN32)
tmp=m_alloc(256);
if(GetTempPath(256,tmp)==0)
strcpy(tmp,"c:\\windows\\temp");
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.
Ciao
Henry Hertz Hobbit
--
Key Name: "Henry Hertz Hobbit" <hhhobbit at securemecca.net>
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 http://isp.netscape.com/register
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 http://channels.netscape.com/ns/search/install.jsp
More information about the Gnupg-users
mailing list