Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1vAz-0005Vg-7D for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Dec 2014 10:52:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1vAy-0002uM-Nd for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Dec 2014 10:52:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1vAx-0002uB-S8; Fri, 19 Dec 2014 10:52:52 +0000 Received: from [2001:6f8:10ee::1] (helo=feynman.df7cb.de) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1vAt-00041F-PK; Fri, 19 Dec 2014 10:52:50 +0000 Received: from msg.df7cb.de (aftr-88-153-7-51.unity-media.net [88.153.7.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id BB3EB696B2; Fri, 19 Dec 2014 11:52:43 +0100 (CET) Date: Fri, 19 Dec 2014 11:52:43 +0100 From: Christoph Berg To: Chris Butler Cc: pgsql-pkg-debian@postgresql.org, PostgreSQL Hackers Subject: Re: Updated libpq5 packages cause connection errors on postgresql 9.2 Message-ID: <20141219105243.GA29845@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Chris Butler , pgsql-pkg-debian@postgresql.org, PostgreSQL Hackers References: <1155204201.65430.1418975376728.JavaMail.zimbra@zedcore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1155204201.65430.1418975376728.JavaMail.zimbra@zedcore.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:6f8:10ee::1 (deferred) X-Pg-Spam-Score: -1.1 (-) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Re: Chris Butler 2014-12-19 <1155204201.65430.1418975376728.JavaMail.zimbra@zedcore.com> > One of our servers is currently running on postgres 9.2 using the 9.2.9-1.pgdg70+1 packages from pgdg. > > After an apt update this morning which brought in the libpq5 package version 9.4.0-1.pgdg70+1, connections to the database started failing with SSL errors logged on the server: > > [unknown] [unknown] LOG: could not accept SSL connection: digest too big for rsa key > > Rolling back the server and client to libpq5 version 9.3.5-2.pgdg70+1 fixed it. > > This is running on an otherwise up-to-date Debian Wheezy. The SSL certificate is locally issued using an internal CA which has been added to the local trust store. SSL-related config options are left set to the defaults. Hi Chris, thanks for the report. Googling for "digest too big for rsa key" seems to indicate that this problem occurs when you are using (client?) certificates with short RSA keys. 512 bits is most often cited in the problem reports, something like 768 is around the minimum size that works, and of course, anything smaller than 1024 or really 1536 (or 2048) bits is too small for today's crypto standards. So the question here is if this is also the problem you saw - are you using client or server certificates with short keys? What this explanation doesn't explain is why the problem occurs with 9.4's libpq5 while it works with 9.3's. The libssl version used for building these packages should really be the same, 9.3.5-2.pgdg70+1 was built just two days ago as well. I'm CCing -hackers, maybe someone there has an idea. Christoph -- cb@df7cb.de | http://www.df7cb.de/ -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian