From: | Chris Butler <cbutler(at)zedcore(dot)com> |
---|---|
To: | Christoph Berg <cb(at)df7cb(dot)de> |
Cc: | pgsql-pkg-debian(at)postgresql(dot)org, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Updated libpq5 packages cause connection errors on postgresql 9.2 |
Date: | 2014-12-19 11:16:14 |
Message-ID: | 1003091149.80142.1418987774498.JavaMail.zimbra@zedcore.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-pkg-debian |
Hi Christoph,
----- Original Message -----
> From: "Christoph Berg" <cb(at)df7cb(dot)de>
> To: "Chris Butler" <cbutler(at)zedcore(dot)com>
>
> 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(at)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(at)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
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2014-12-19 11:39:19 | Re: Combining Aggregates |
Previous Message | Amit Kapila | 2014-12-19 11:10:58 | Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ] |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2014-12-19 12:08:18 | Re: Updated libpq5 packages cause connection errors on postgresql 9.2 |
Previous Message | Christoph Berg | 2014-12-19 10:52:43 | Re: Updated libpq5 packages cause connection errors on postgresql 9.2 |