From owner-freebsd-questions@FreeBSD.ORG Sun Sep 5 15:18:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E91E10656A5 for ; Sun, 5 Sep 2010 15:18:15 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 175848FC13 for ; Sun, 5 Sep 2010 15:18:14 +0000 (UTC) Received: by qyk31 with SMTP id 31so1767728qyk.13 for ; Sun, 05 Sep 2010 08:18:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.18.22 with SMTP id u22mr213813qaa.18.1283699894209; Sun, 05 Sep 2010 08:18:14 -0700 (PDT) Received: by 10.229.95.145 with HTTP; Sun, 5 Sep 2010 08:18:14 -0700 (PDT) X-Originating-IP: [93.203.52.188] In-Reply-To: <20100901124948.B2607ECAA6@mf3.socket.net> References: <20100901124948.B2607ECAA6@mf3.socket.net> Date: Sun, 5 Sep 2010 17:18:14 +0200 Message-ID: From: "C. P. Ghost" To: jhall@socket.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: GnuPG not allowing passphrase entry X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Sep 2010 15:18:15 -0000 On Wed, Sep 1, 2010 at 2:49 PM, 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) > " > 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) > " > 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/