Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2010 17:18:14 +0200
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        jhall@socket.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: GnuPG not allowing passphrase entry
Message-ID:  <AANLkTindt62DWtrxxjQbyMwN9unJMjyxRpMph-Y2L9qi@mail.gmail.com>
In-Reply-To: <20100901124948.B2607ECAA6@mf3.socket.net>
References:  <20100901124948.B2607ECAA6@mf3.socket.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 1, 2010 at 2:49 PM,  <jhall@socket.net> wrote:
> Ladies and Gentlemen,
>
> I an attempting to decrypt a file using the following command line.
>
> /usr/local/bin/gpg --output /usr/local/scripts/test. --no-default-keyring
> --secret-keyring 09-2010.sec --keyring 09-2010.pub --always-trust
> --decrypt --recipient Wed_Sep_1_00_01_00_CDT_2010@abc.org
> /usr/local/scripts/test.gpg
>
> When doing so, I receive the following output.
>
> You need a passphrase to unlock the secret key for
> user: "Wed_Sep_1_00_01_00_CDT_2010 (Monthly Archive Encryption Key)
> <Wed_Sep_1_00_01_00_CDT_2010@abc.org>"
> 1024-bit ELG key, ID E8E5F849, created 2010-09-01 (main key ID 557E7C04)
>
> gpg: cancelled by user
> gpg: encrypted with 1024-bit ELG key, ID E8E5F849, created 2010-09-01
> =A0 =A0 =A0"Wed_Sep_1_00_01_00_CDT_2010 (Monthly Archive Encryption Key)
> <Wed_Sep_1_00_01_00_CDT_2010@abc.org>"
> gpg: public key decryption failed: General error
> gpg: decryption failed: No secret key
>
> While the prompt to enter a passphrase does appear, it is skipped without
> allowing me to enter anything.
>
> gpg-agent is running. =A0I am running FreeBSD 8.0. My GnuPG version is
> 2.0.14

gpg-agent (and pinentry-*) causes all sorts of trouble. Are you sure all
environment variables are pointing to it when you run gpg (notably
GPG_AGENT_INFO and GPG_TTY)? What about the permissions
of the sockets?

> I have also tried adding the public and secret keys to the default keyrin=
g
> and receive the same result.
>
> Thanks for your help.

-cpghost.

--=20
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTindt62DWtrxxjQbyMwN9unJMjyxRpMph-Y2L9qi>