pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: Curt Sampson <cjs@cynic.net>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Speed of SSL connections; cost of renegotiation
Date: Fri, 11 Apr 2003 11:24:33 -0400
Message-ID: <11759.1050074673@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0304110855430.2900-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0304110855430.2900-100000@css120.ihs.com>

"scott.marlowe" <scott.marlowe@ihs.com> writes:
> Ummm.  I'm not comfortable with using a time based period for 
> renogatiation.  What can move in an hour from a P100 on Arcnet versus a 32 
> CPU altix on switched fabric are two entirely different things.  If there 
> is a "sweet spot" for how often to renogotiate it would be based on 
> amount.

That's what I would think, too.  So we already have the right mechanism,
it's just a question of what the setting ought to be.

I realized this morning that there's probably a security tradeoff
involved: renegotiating the session key limits the amount of session
data encrypted with any one key, which is good; but each renegotiation
requires another use of the server key, increasing the odds that an
eavesdropper could break *that* (which'd let him into all sessions not
just the one).

So a too-short renegotiation interval is not only expensive time-wise,
but could actually be a net loss for security.

I'm beginning to think we need to consult some experts to find out what
the right tradeoff is.

			regards, tom lane

PS: the sshd setting that was quoted refers to how often a new server
key is chosen, which is really independent of choosing new session keys.
Does our SSL code even have the facility to choose new server keys?
If not, perhaps someone had better add it.




view thread (14+ messages)  latest in thread

Message-ID: <11759.1050074673@sss.pgh.pa.us>
Permalink:  ../11759.1050074673@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11759.1050074673@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scott.marlowe@ihs.com, cjs@cynic.net, pgsql-hackers@postgresql.org
  Subject: Re: Speed of SSL connections; cost of renegotiation
  In-Reply-To: <11759.1050074673@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox