Re: [dane] An Update on Danelaw

Viktor Dukhovni <viktor1dane@dukhovni.org> Sat, 05 April 2014 04:03 UTC

Return-Path: <viktor1dane@dukhovni.org>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5853D1A024C for <dane@ietfa.amsl.com>; Fri, 4 Apr 2014 21:03:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1vBRJXwMvqBQ for <dane@ietfa.amsl.com>; Fri, 4 Apr 2014 21:03:33 -0700 (PDT)
Received: from mournblade.imrryr.org (mournblade.imrryr.org [38.117.134.19]) by ietfa.amsl.com (Postfix) with ESMTP id 010911A0143 for <dane@ietf.org>; Fri, 4 Apr 2014 21:03:32 -0700 (PDT)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id C4DC02AABD5; Sat, 5 Apr 2014 04:03:26 +0000 (UTC)
Date: Sat, 5 Apr 2014 04:03:26 +0000
From: Viktor Dukhovni <viktor1dane@dukhovni.org>
To: dane@ietf.org
Message-ID: <20140405040326.GO12559@mournblade.imrryr.org>
References: <533EF994.7000009@nist.gov>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="/2994txjAzEdQwm5"
Content-Disposition: inline
In-Reply-To: <533EF994.7000009@nist.gov>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/u8VMya5PqibkKei0ZaU-L_WDtRg
Subject: Re: [dane] An Update on Danelaw
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: dane@ietf.org
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Apr 2014 04:03:37 -0000

On Fri, Apr 04, 2014 at 02:27:32PM -0400, Stephen Nightingale wrote:

> https://www.had-pilot.com/dane/danelaw.html.

> The three DANE clients based on TLSlite 0.4.6, GnuTLS 3.1.16 and OpenSSL
> 1.0.1e all now incorporate Viktor Dukhovni's 'C' language dane checker
> and return consistent - though not identical - results.

To be precise, currently each of these: connects, dumps the server
certificate chain to a PEM chain file, and invokes my DANE verification
code in an "offline" mode to validate the chain against each of
the TLSA records.  That way the verification code is independent
of the TLS toolkit used to complete the connection.

> - Dougbarton.us works with GnuTLS, but generates handshake failures with
>   TLSlite and OpenSSL.

Something is not right with the above, at least with OpenSSL 1.0.1
I get a working SSL connection with dougbarton.us.  Now this server
presents a chain with just the leaf certificate, even though the
issuing CA is an intermediate CA.  When I put both the intermediate
cert (attached) and its issuing root (attached) in a CAfile, I can
verify the dougbarton.us "1 0 2" TLSA record just fine.

> - Kumari.net and Spodhuis.org both complete handshakes with TLSlite and
> GnuTLS, but fail against OpenSSL.

OpenSSL succeeds for me with spodhuis.org.  Same StartCom root and
intermediate as dougbarton.us, but spodhuis actually presents a
full chain.

Likewise www.kumari.net works, and the "TLSA 1 0 1" record matches
with the PKIX root from Equifax.

Do connections to these sites work for you with "openssl s_client"?
This warrants further investigation.

> - Kumari.net returns 403 forbidden to TLSlite and GnuTLS, but works with the
> Browsers.  I am guessing the 403 is generated because my clients do not send
> a certificate.  I will be testing for bi-directional verification sometime
> in the future.

That's an application layer issue, that is not really relevant for
testing DANE.  Once the TLS session is up, you can just disconnect,
without even sending an HTTP request.

> GnuTLS is running all 0xx and 1xx certificate uses, serving a single end
> certificate per use. It runs 24/7 robustly.  It can only be configured to
> take a single end certificate for the server handshake.  When presented with
> a concatenation of PEM certs, it will send only the end cert in the server
> side handshake.

That does not sound right, are you sure about that?  RFC 2246, 4346
and 5246 all require servers to present a chain with more than just
the leaf certificate unless directly issued by a root CA.  So  it
would be rather surprising of GnuTLS were not capable of presenting
a complete chain.  Almost certainly you just need to invoke it
differently to load a complete chain.

> The OpenSSL DANE server is running all 3xx certificate uses, with a single
> wild card end certificate. Whether it can serve a full PEM concatenated
> certificate chain is a question still to be investigated.

OpenSSL definitely supports presenting a complete chain.

> The near-future course of the DANE project at NIST will now focus on SMTP
> uses, for both MUAs and MTAs.

I think the issues with the HTTP use case are not protocol-specific
and will crop up again with SMTP.  So they should be addressed.

-- 
	Viktor.