Re: [Syslog] Fingerprint/handshake

"Rainer Gerhards" <rgerhards@hq.adiscon.com> Thu, 29 May 2008 07:48 UTC

Return-Path: <syslog-bounces@ietf.org>
X-Original-To: syslog-archive@megatron.ietf.org
Delivered-To: ietfarch-syslog-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 538473A6982; Thu, 29 May 2008 00:48:05 -0700 (PDT)
X-Original-To: syslog@core3.amsl.com
Delivered-To: syslog@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CD8033A6998 for <syslog@core3.amsl.com>; Thu, 29 May 2008 00:48:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RH0HeFkEVSjp for <syslog@core3.amsl.com>; Thu, 29 May 2008 00:48:03 -0700 (PDT)
Received: from mailin.adiscon.com (hetzner.adiscon.com [85.10.198.18]) by core3.amsl.com (Postfix) with ESMTP id 06E2928C1BE for <syslog@ietf.org>; Thu, 29 May 2008 00:45:21 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mailin.adiscon.com (Postfix) with ESMTP id D20727AD809; Thu, 29 May 2008 09:43:42 +0200 (CEST)
Received: from mailin.adiscon.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XA6hHlDTmQIz; Thu, 29 May 2008 09:43:42 +0200 (CEST)
Received: from grfint2.intern.adiscon.com (p50989a7c.dip0.t-ipconnect.de [80.152.154.124]) by mailin.adiscon.com (Postfix) with ESMTP id 9AC897AD770; Thu, 29 May 2008 09:43:42 +0200 (CEST)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Thu, 29 May 2008 09:45:17 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5
Message-ID: <577465F99B41C842AAFBE9ED71E70ABA3090E1@grfint2.intern.adiscon.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE505E7E825@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [Syslog] Fingerprint/handshake
Thread-Index: Aci597ZxZLhWgaMcSke8NLzWgHaUOAABInCQAT9t6xAAii+fYAAPM9Dg
References: <003901c8b9f7$b671959d$060013ac@intern.adiscon.com> <AC1CFD94F59A264488DC2BEC3E890DE505DFD8E5@xmb-sjc-225.amer.cisco.com> <577465F99B41C842AAFBE9ED71E70ABA309090@grfint2.intern.adiscon.com> <AC1CFD94F59A264488DC2BEC3E890DE505E7E825@xmb-sjc-225.amer.cisco.com>
From: Rainer Gerhards <rgerhards@hq.adiscon.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, syslog@ietf.org
Subject: Re: [Syslog] Fingerprint/handshake
X-BeenThere: syslog@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Security Issues in Network Event Logging <syslog.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/syslog>, <mailto:syslog-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/syslog>
List-Post: <mailto:syslog@ietf.org>
List-Help: <mailto:syslog-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/syslog>, <mailto:syslog-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: syslog-bounces@ietf.org
Errors-To: syslog-bounces@ietf.org

Inline...
> -----Original Message-----
> From: Joseph Salowey (jsalowey) [mailto:jsalowey@cisco.com]
> Sent: Thursday, May 29, 2008 2:32 AM
> To: Rainer Gerhards; syslog@ietf.org
> Subject: RE: [Syslog] Fingerprint/handshake
> 
> Hi Rainer,
> 
> A TLS alert could be sent by the server indicating the error condition.
> Would this help?

That's an interesting idea. Let me give it a try. Will provide feedback when I have done this. In any case, if it turns out to be a problem with one library, we may be better of mandating that all verification is done during the handshake...

> 
> Joe
> 
> > -----Original Message-----
> > From: Rainer Gerhards [mailto:rgerhards@hq.adiscon.com]
> > Sent: Sunday, May 25, 2008 11:46 PM
> > To: Joseph Salowey (jsalowey); syslog@ietf.org
> > Subject: RE: [Syslog] Fingerprint/handshake
> >
> > Hi Joe,
> >
> > inline
> >
> > > -----Original Message-----
> > > From: Joseph Salowey (jsalowey) [mailto:jsalowey@cisco.com]
> > > Sent: Friday, May 23, 2008 8:21 PM
> > > To: Rainer Gerhards; syslog@ietf.org
> > > Subject: RE: [Syslog] Fingerprint/handshake
> > >
> > > The fingerprint check should be done where certificate validation
> > would
> > > be done.  This is typically done within the handshake itself,
> >
> > I agree to this, but have found this to be problematic with
> > some TLS libraries. Of course, that doesn't mean the standard
> > needs to change, but I would still like to provide some
> > implementation feedback.
> >
> > With GnuTLS, for example, you can do the final authentication
> > only after the handshake [1]. With NSS, it can be done during
> > the handshake. As of my understanding, OpenSSL does support
> > it after the handshake only (but I have not actually used
> > OpenSSL, this is based on my understanding after reading
> > doc). This brings me to the conclusion that, at least in some
> > environments I may be forced to delay the authentication
> > check to after the handshake.
> >
> [Joe] Its been a while since I used OpenSSL, but if I remember
> correctly
> they do have hooks in the certificate validation code.

[Rainer]
From what I have seen in the doc, this does not permit to do all checks. Most importantly, it looked like I am not able to check the fingerprint and subject name. But fortunately Martin Schütte is using openSSL for his implementation and I hope he can provide feedback on this in the not so distant future.

Rainer
_______________________________________________
Syslog mailing list
Syslog@ietf.org
https://www.ietf.org/mailman/listinfo/syslog