Bug in GPG for Windows - gpg: invalid key resource URL for keyrings

Michael Schierl schierlm at gmx.de
Tue Aug 30 17:57:08 CEST 2005


Harakiri schrieb:

> gpg --homedir c:\keys\tmp --batch --yes --verbose
> --status-fd 2 --no-default-keyring --keyring
> c:\keys\tmp\pubring.gpg --secret-keyring
> c:\keys\tmp\secring.gpg --import c:\keys\mykey.asc
> 
> output :
> 
> gpg: invalid key resource URL
> `c:\keys\tmp\secring.gpg'
> gpg: keyblock resource `(null)': general error
> gpg: invalid key resource URL
> `c:\keys\tmp\pubring.gpg'
> gpg: keyblock resource `(null)': general error
> 
> (you can copy and paste this and verify it for
> yourself - you dont even need to have these
> directories or a key)

Hmm:

C:\>gpg --homedir c:\keys\tmp --batch --yes --verbose --status-fd 2
    --no-default-keyring --keyring c:\keys\tmp\pubring.gpg
    --secret-keyring c:\keys\tmp\secring.gpg --import c:\keys\mykey.asc

gpg: keyblock resource `c:\keys\tmp\secring.gpg': file open error
gpg: keyblock resource `c:\keys\tmp\pubring.gpg': file open error
gpg: can't open `c:\keys\mykey.asc': No such file or directory
gpg: Total number processed: 0
[GNUPG:] IMPORT_RES 0 0 0 0 0 0 0 0 0 0 0 0 0 0

After creating c:\keys\tmp it works as expected.

C:\>gpg --version
gpg (GnuPG) 1.4.2

C:\>ver

Microsoft Windows 2000 [Version 5.00.2195]

Please supply more information.

Michael



More information about the Gnupg-devel mailing list