Re: [TLS] signature_algorithms_cert extension

Eric Rescorla <ekr@rtfm.com> Thu, 18 January 2018 13:17 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1B9B912700F for <tls@ietfa.amsl.com>; Thu, 18 Jan 2018 05:17:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 I0VvgjF6udzK for <tls@ietfa.amsl.com>; Thu, 18 Jan 2018 05:17:01 -0800 (PST)
Received: from mail-yw0-x234.google.com (mail-yw0-x234.google.com [IPv6:2607:f8b0:4002:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 450D512421A for <tls@ietf.org>; Thu, 18 Jan 2018 05:17:01 -0800 (PST)
Received: by mail-yw0-x234.google.com with SMTP id t201so11162834ywf.1 for <tls@ietf.org>; Thu, 18 Jan 2018 05:17:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=o55SAbx+OOHSYtMvzHRuqhNUVb6FCjigR7I5H/qHjvg=; b=zV7EOKOMKTjwWaFseDfIkd7NHmEwnkPh8evNY9pWe/dEhaNqTTLo3ANn7bRpPZ2h54 r7IbZun6A1eXfrDvp53DuqlbNjo8ah/Xk1H/2Rv/qbS34pksMykdoJp7McV2YzIn4QoD PQ0OzJ4zrIWOv78yl3tehYYP+WBk5aMsatmoyFwpZRBH5M2AoePtej3IzONSMySaWKKP GsWnFNqTn9gAO8xD6OeNUiP2Hib40gmtvKZl8SzkH/BJ4cbwqyJ+7qxf+5VpSzxua4NP Tx4HR1vgCBNaqwHL1+xwCqSLCWN4ax+7um0v9Cjki7XgQaun0QcLs4i4Mph6Kbn5Nl7v /u9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=o55SAbx+OOHSYtMvzHRuqhNUVb6FCjigR7I5H/qHjvg=; b=BBcYBO6Sc8y5wAlvc07+Nec6KGdQm97EsiOIWpOxgVfQuRohXmkSfXUHorDoLYD4GY UK7U3UymSKlXkzvHBVNMUi3wBtH+ew2fM0Ae4/tMdlStQHXZNwLE0w22YPpAha2vOzn3 hUiaNPhIUSj722YNiLIf1cyT2pcrSUPRjIvnPetvij5YdU5rp1d/xfGIm4QoRgDVhhVl ASfUMqsyTfn/eg8a+CDr3OXyge2fp1ExtL6mltKsiIKKldhtxhoEVEU0bdrqX3xVsYQC a6vc0BVzS2UMJamP0QDh6Ufu7nfQF1pATukL01ZLlJOqUEK4ZcbbUcKLIOZP90vGNh6q Yq3Q==
X-Gm-Message-State: AKwxytdCF/iL6ipxJdcWWcLSN0mOgVDuXGy/e8tv042qOqNocB0NBngm TjV7Pphw5Nr4WHrwa2BgkWDNsckCkJSaQNX1mb8e2pylrQ0=
X-Google-Smtp-Source: ACJfBosf+9RtUZxssqUs72M2hZRNXuSiUStV71Dzv2VZn5/BWVhMDvmnnnu01iAEObyokVnuw3J21mEq/RzDCzyyc4w=
X-Received: by 10.37.174.72 with SMTP id g8mr13155365ybe.474.1516281420156; Thu, 18 Jan 2018 05:17:00 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.123.66 with HTTP; Thu, 18 Jan 2018 05:16:19 -0800 (PST)
In-Reply-To: <50eb8f92-b0b2-faab-6f48-14d820480f7d@openssl.org>
References: <50eb8f92-b0b2-faab-6f48-14d820480f7d@openssl.org>
From: Eric Rescorla <ekr@rtfm.com>
Date: Thu, 18 Jan 2018 05:16:19 -0800
Message-ID: <CABcZeBPGFB6vxqG2AO17PPqr87JNKXn6aS6medoygOYrUn2aDA@mail.gmail.com>
To: Matt Caswell <matt@openssl.org>
Cc: "tls@ietf.org" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="f403045ecec06da61505630cc7c4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/kMiEAoDikgywyWYJSs2TbXqsVSM>
Subject: Re: [TLS] signature_algorithms_cert extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Jan 2018 13:17:03 -0000

On Thu, Jan 18, 2018 at 3:29 AM, Matt Caswell <matt@openssl.org> wrote:

> The specification of the new signature_algorithms_cert seems somewhat
> lacking to me. There is very little description about how it should be
> interpreted. About the best I can get from the spec is this:
>
>    The "signature_algorithms_cert" extension applies to signatures in
>    certificates and the "signature_algorithms" extension, which
>    originally appeared in TLS 1.2, applies to signatures in
>    CertificateVerify messages.
>
> But in section 4.4.2.2 we see this:
>
>    All certificates provided by the server MUST be signed by a signature
>    algorithm that appears in the "signature_algorithms" extension
>    provided by the client, if they are able to provide such a chain (see
>    Section 4.2.3).  Certificates that are self-signed or certificates
>    that are expected to be trust anchors are not validated as part of
>    the chain and therefore MAY be signed with any algorithm.
>
>
> Is this an oversight? Should this reference "signature_algorithms_cert"
> as well/instead?
>

Yes, it's an oversight that it didn't get added here.


Some questions:
>
> - Is "signature_algorithms_cert" mandatory to implement for servers? It
> does not appear in 9.2 so I am assuming not. There is some text in 4.2.3
>  which says what to do if "signature_algorithms_cert" is not present -
> which seems to confirm that it is not mandatory for clients at least.
>

Both sides need to implement it for the purposes of filtering the
certificates
they send. Neither side need send it if it has a consistent policy for
CertVerify
and chain validation.


- Are we allowed to ignore "signature_algorithms_cert" if we can't build
> a chain and honour its contents?
>

Same rules as signature_algorithms.

I have filed https://github.com/tlswg/tls13-spec/pull/1142 to clarify these
points.

-Ekr



>
> Matt
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>