X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D780B475AE4; Sat, 12 Apr 2003 01:26:40 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 2F622475AA9; Sat, 12 Apr 2003 01:26:40 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3C5QQ2L016305; Sat, 12 Apr 2003 01:26:26 -0400 (EDT) To: Curt Sampson Cc: "scott.marlowe" , pgsql-hackers@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: Speed of SSL connections; cost of renegotiation In-reply-to: References: <11759.1050074673@sss.pgh.pa.us> Comments: In-reply-to Curt Sampson message dated "Sat, 12 Apr 2003 13:05:05 +0900" Date: Sat, 12 Apr 2003 01:26:26 -0400 Message-ID: <16304.1050125186@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/383 X-Sequence-Number: 37873 Curt Sampson writes: > On Fri, 11 Apr 2003, Tom Lane wrote: >> 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). > This seems extremely low-risk to me; there's very little data > transferred using the server key. Perhaps, but the downside if the server key is broken is much worse than the loss if any one session key is broken. Also, I don't know how stylized the key-renegotiation exchange is --- there might be a substantial known-plaintext risk there. The fact that sshd thinks it necessary to choose a new server key as often as once an hour indicates to me that they consider the risks nonnegligible. regards, tom lane