Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm5X7-0007Dl-TC for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Nov 2013 17:37:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vm5X7-0003SD-DR for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Nov 2013 17:37:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm5X6-0003S7-Ph for pgsql-bugs@postgresql.org; Thu, 28 Nov 2013 17:37:44 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm5X3-0007ZL-Kq for pgsql-bugs@postgresql.org; Thu, 28 Nov 2013 17:37:44 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Vm5X2-0008JO-Gv; Thu, 28 Nov 2013 12:37:40 -0500 Date: Thu, 28 Nov 2013 12:37:40 -0500 From: Bruce Momjian To: keith@omniti.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7923: PGP secret key with password decryption not working Message-ID: <20131128173740.GA20216@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, Mar 6, 2013 at 11:31:25PM +0000, keith@omniti.com wrote: > The following bug has been logged on the website: > > Bug reference: 7923 > Logged by: Keith Fiske > Email address: keith@omniti.com > PostgreSQL version: 9.2.3 > Operating system: Debian/Ubuntu/Solaris > Description: > > Running into an issue when we tried to add a password to a gpg secret key > used to encrypt data in the database. Things have been working fine with no > password on they key, but that isn't ideal. I was able to recreate this > issue on my local install of postgres, so it's not just an issue on the > server where I first noticed it. Below is the process I went through, > generating a key, moving it to where postgres can read it, encrypting and > then attempting to decrypt the data. I know the password I gave is correct > because I used the same password to remove it from the key and then things > just worked. > > Ran into someone else reporting pretty much the same issue but no resolution > other than removing the password. > http://bytes.com/topic/postgresql/answers/943536-corrupt-data-error-decryption-postgresql-using-gnupg FYI, I believe this was fixed here: commit 477b5a0e24f3b62a470f9684e22e36a2c7735274 Author: Tom Lane Date: Fri May 10 13:06:48 2013 -0400 Fix pgp_pub_decrypt() so it works for secret keys with passwords. Per report from Keith Fiske. Marko Kreen Here are the details: http://www.postgresql.org/message-id/20130506193940.GA3078@gmail.com The fix is included in all releases done on Oct. 10, 2013. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs