Re: SSL renegotiation

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Florian Weimer *EXTERN*" <fweimer(at)redhat(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Emil Lenngren <emil(dot)lenngren(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SSL renegotiation
Date: 2015-02-23 15:01:04
Message-ID: A737B7A37273E048B164557ADEF4A58B3659F4BD@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Florian Weimer wrote:
> On 02/22/2015 02:05 PM, Andres Freund wrote:
>> On 2015-02-22 01:27:54 +0100, Emil Lenngren wrote:
>>> I honestly wonder why postgres uses renegotiation at all. The motivation
>>> that cryptoanalysis is easier as more data is sent seems quite
>>> far-fetched.
>>
>> I don't think so. There's a fair number of algorithms that can/could be
>> much easier be attached with lots of data available. Especially if you
>> can guess/know/control some of the data. Additionally renegotiating
>> regularly helps to constrain a possible key leagage to a certain amount
>> of time. With backend connections often being alive for weeks at a time
>> that's not a bad thing.
>
> Renegotiation will be removed from future TLS versions because it is
> considered unnecessary with modern ciphers:
>
> <https://github.com/tlswg/tls13-spec/issues/38>
>
> If ciphers require rekeying, that mechanism will be provided at the TLS
> layer in the future.
>
> I think you could remove renegotiation from PostgreSQL as long as you
> offer something better than RC4 in the TLS handshake.

I'd say it is best to wait if and how OpenSSL change their API when they
implement TLS 1.3.

I'd vote against removing renegotiation. At the very least, if the feature
should provide unnecessary and cumbersome with future versions of OpenSSL,
we should retain ssl_renegotiation_limit and change the default to 0.
It might still be of value with older versions.

If changing the encryption is so useless, whe did the TLS workgroup
decide to introduce rekeying as a substitute for renegotiation?

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-02-23 15:25:53 Re: "multiple backends attempting to wait for pincount 1"
Previous Message Florian Weimer 2015-02-23 14:15:31 Re: SSL renegotiation