Re: [Ntp] Getting started using NTS -- clock accuracy vs certificates

Miroslav Lichvar <mlichvar@redhat.com> Tue, 02 August 2022 09:24 UTC

Return-Path: <mlichvar@redhat.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83D3EC15C514 for <ntp@ietfa.amsl.com>; Tue, 2 Aug 2022 02:24:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.691
X-Spam-Level:
X-Spam-Status: No, score=-2.691 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.582, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id toLiWXrgMF1O for <ntp@ietfa.amsl.com>; Tue, 2 Aug 2022 02:24:54 -0700 (PDT)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ED4B2C157B53 for <ntp@ietf.org>; Tue, 2 Aug 2022 02:24:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659432292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PLny0ZhT3Xc0WGn/iZQ4bwzTMGYP2yGHJvrvNecUaQg=; b=hkQU1Detq19U0bt0f8yCwx0trywl7jK1L/mDaSFG8m11ZkqnluUNUm1oYc3hQqa1c6WvOW y39wB9KxGz9ZAxj7+2I87l76zfDlJ39kD46Adu/s/jh/8ynPSMe2JWSnZ4Cfvxhva00RCv mz9sOcfJc4ST2cIXiQ542r9aQOmGOf4=
Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-336-PAWM7X2YOVCJ-ZFVuZdFJg-1; Tue, 02 Aug 2022 05:24:49 -0400
X-MC-Unique: PAWM7X2YOVCJ-ZFVuZdFJg-1
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 86F683C11E78; Tue, 2 Aug 2022 09:24:34 +0000 (UTC)
Received: from localhost (unknown [10.43.135.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 16766C44AE3; Tue, 2 Aug 2022 09:24:33 +0000 (UTC)
Date: Tue, 02 Aug 2022 11:24:30 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Hal Murray <halmurray@sonic.net>
Cc: ntp@ietf.org
Message-ID: <YujtTu1YYEvhg2Hv@localhost>
References: <mlichvar@redhat.com> <YueT8bAiTeM+nTZv@localhost> <20220801210637.D395628C1CA@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
MIME-Version: 1.0
In-Reply-To: <20220801210637.D395628C1CA@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/i07Lxl70v2BoDy5v82l6VjUbZ2Q>
Subject: Re: [Ntp] Getting started using NTS -- clock accuracy vs certificates
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Aug 2022 09:24:58 -0000

On Mon, Aug 01, 2022 at 02:06:37PM -0700, Hal Murray wrote:
> With your suggestion, I think it's reasonable for a server to have 2 
> certificates and use the right one depending on the host name presented early 
> in the handshake.

It doesn't have to be only two. A new name and certificate could be
added periodically (e.g. once a year), or whenever a compromise of the
key is suspected. Up-to-date clients use the latest certificate. Only
a client that didn't receive the latest update will need to use an older
certificate in order to synchronize its clock and receive the latest
name+certificate (e.g. over HTTPS).

Very old certificates can be rotated out. This might work better on
OS-specific servers where they would know which versions are no longer
supported.

> Using the numerical IP address as the "host name" in the certificate would 
> avoid the DNSSEC tangle.  That seems like a reasonable convention for long 
> lived certificates.

Yes, including the IP address as a Subject Alternative Name in the
certificate could be a very useful feature.

> Is there a list of public NTS servers?

Here is a nice list:
https://netfuture.ch/2021/12/transparent-trustworthy-time-with-ntp-and-nts/#server-list

> We only need a few NTS servers with long lived certificates so non-RTC systems 
> can get off the ground.  After that, they can switch to closer servers.

This logic would need to be implemented in the clients.

-- 
Miroslav Lichvar