Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1wzc-0002u0-20 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Dec 2014 12:49:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1wza-000693-T4 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Dec 2014 12:49:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1vXk-0001OV-9U; Fri, 19 Dec 2014 11:16:24 +0000 Received: from fermat.axiomtech.co.uk ([89.145.71.216]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y1vXc-0000tr-S9; Fri, 19 Dec 2014 11:16:23 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by fermat.axiomtech.co.uk (Postfix) with ESMTP id 402D61C402D0; Fri, 19 Dec 2014 11:16:15 +0000 (GMT) Received: from fermat.axiomtech.co.uk ([127.0.0.1]) by localhost (fermat.axiomtech.co.uk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6uThHrZQgUJK; Fri, 19 Dec 2014 11:16:14 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by fermat.axiomtech.co.uk (Postfix) with ESMTP id B87221C402DB; Fri, 19 Dec 2014 11:16:14 +0000 (GMT) X-Virus-Scanned: amavisd-new at fermat.axiomtech.co.uk Received: from fermat.axiomtech.co.uk ([127.0.0.1]) by localhost (fermat.axiomtech.co.uk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id D8hsSKgo3Ihd; Fri, 19 Dec 2014 11:16:14 +0000 (GMT) Received: from fermat.axiomtech.co.uk (fermat.axiomtech.co.uk [89.145.71.216]) by fermat.axiomtech.co.uk (Postfix) with ESMTP id 99F6B1C402D0; Fri, 19 Dec 2014 11:16:14 +0000 (GMT) Date: Fri, 19 Dec 2014 11:16:14 +0000 (GMT) From: Chris Butler To: Christoph Berg Cc: pgsql-pkg-debian@postgresql.org, PostgreSQL Hackers Message-ID: <1003091149.80142.1418987774498.JavaMail.zimbra@zedcore.com> In-Reply-To: <1074520809.80089.1418987745789.JavaMail.zimbra@zedcore.com> References: <1155204201.65430.1418975376728.JavaMail.zimbra@zedcore.com> <20141219105243.GA29845@msg.df7cb.de> Subject: Re: Updated libpq5 packages cause connection errors on postgresql 9.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.5.0_GA_3042 (ZimbraWebClient - GC39 (Linux)/8.5.0_GA_3042) Thread-Topic: Updated libpq5 packages cause connection errors on postgresql 9.2 Thread-Index: 4+Hsc01pMPgK/rVWEpw+TuX/XGetAQ== X-Pg-Spam-Score: -1.9 (-) 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 Hi Christoph, ----- Original Message ----- > From: "Christoph Berg" > To: "Chris Butler" > > 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? Yes, that would appear to be the case - the key we're using is only 512 bits. I'll make sure we replace the certificate before re-applying the update (which will probably be after the holidays now). > 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. For info, I can confirm that both libraries are loading the same libssl: zedcore@web2:/tmp/usr/lib/x86_64-linux-gnu$ ldd /usr/lib/x86_64-linux-gnu/libpq.so.5 | grep libssl libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f3e8d898000) zedcore@web2:/tmp/usr/lib/x86_64-linux-gnu$ ldd ./libpq.so.5 | grep libssl libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f5d76176000) I can see a few changes are listed in the 9.4 changelog relating to SSL, so my guess would be one of those changes has altered the behaviour of libssl when presented with a small key. -- Chris Butler Zedcore Systems Ltd Telephone: 0114 303 0666 Direct dial: 0114 303 0572 -- 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