[TLS] Re: [External⚠️] Re: Certificate Update in TLS

Watson Ladd <watsonbladd@gmail.com> Sun, 22 June 2025 13:31 UTC

Return-Path: <watsonbladd@gmail.com>
X-Original-To: tls@mail2.ietf.org
Delivered-To: tls@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 7639037F653C for <tls@mail2.ietf.org>; Sun, 22 Jun 2025 06:31:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XieRR1wbP06g for <tls@mail2.ietf.org>; Sun, 22 Jun 2025 06:31:39 -0700 (PDT)
Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 9ED0337F6535 for <tls@ietf.org>; Sun, 22 Jun 2025 06:31:34 -0700 (PDT)
Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-453398e90e9so21855025e9.1 for <tls@ietf.org>; Sun, 22 Jun 2025 06:31:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750599094; x=1751203894; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4SoWm0rc1W/n/wf88Is/h1gxMxDqq8ivKytZtKlHp60=; b=Qz+JHZwUGyrxbEKU8sCa2IQcgrTgEbzyi1lDUsFnUiXjmgp4wiMaOsU4nzUBACa85r SvG39mF6I7qnKZ8ehqfASmt1E6jVUvQy7WTgvxLK9GAVMt/wVJZyhpvOrpfeOyYgukFp ZJEfyrTw/y4e0K587Vsv/ygJJ2h6chHxzujz+nTlHKucm6gGCOnHIFw2R5gs9cr/uRsH MFZcgNTTmmbVl2MfSILc6PlnCtx9kpHf9/v9yCOAXGdrEt4ewYH1C6onsMLpcboc9fCd 3cjwyKSyqfTTMUUWM+45V0S9gnzeHxHOVEujHv17gbifFi1xi9TlNVYqwdAvQFKlsRwT qnOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750599094; x=1751203894; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4SoWm0rc1W/n/wf88Is/h1gxMxDqq8ivKytZtKlHp60=; b=nE2mHlxoMx9wdBk8yENANUOmLZiut6DqdUAd6lA1or+kEzRSA+KOwAjZM4qWFOLVHm r8L8IaFhM69wZXu2iao1V69COJOyeUgqReOAc32Wq6wrnQif1+SVt+GRbvbK6hZlcAPI Nh/XXXTuWZuvko8bw2QXswn6PiLEgntDrFrMCZkBnRvmKq1OJNsnCrfaLFjseYkTvACm q79XXg4wcKiGk6OlThleU0HK9E9euQftvX3OGW18WNKMxDobKTNSXDjly7ch7uyWiLqs md/0NPYC1JrMd5Mwyi7SFb2meJZSlRVNy8yu207XLb/HWj5AqtvqA+/9XIRarto/UOmU O9QQ==
X-Forwarded-Encrypted: i=1; AJvYcCVE8u7stcd87cSpl+6O1QXo7NWdCDiwVxzx3xp9IEZQtCWZotYoCE78I+BnWtP5/UTBCC0=@ietf.org
X-Gm-Message-State: AOJu0YzG2dzZOmgU+e3nL+LUuPaIyd/WyzuVEHVU7e16RKYRpTtrmaPV E4Di6OzXOSLV/MIU3iytCxV5C2cL7S8Jc0PXiExUklLkEVGXnQrhKmZaTCcW4qd5TsGIBvXdjrG nyvBcDYu8haqcYDi3Zg42FTvXSSbEDEEerQ==
X-Gm-Gg: ASbGncvlID3afKiZtr13SDp2vOWo2YWpBBPnmMrWDpLIYvs3K+m+zccbFT8O2WyZRYl jVFieoB9AYFzawsL6j+KKgHCTZiIL5y6/nxPbSCTTp362AkY0813Qmr9gVizYQCvPxWTuOLYd0b B/L+vJRM9R0weVS9Tdcqt+5GXaLpXeEjjQ1KgyNHF415H3eaPbYkS/Z8MKJVwbGnaxQbAEn1Gv8 0HC
X-Google-Smtp-Source: AGHT+IHu4k53qpRoEqSHz/Skxl8Uq9zT8JPeqF+hU45y5MqRLxoEUlzIWQBxD7TKSoMuMBc3ZsFFsujotJeGvGse3QQ=
X-Received: by 2002:a05:600c:19d1:b0:43d:4e9:27ff with SMTP id 5b1f17b1804b1-453659c40cbmr75379135e9.7.1750599093243; Sun, 22 Jun 2025 06:31:33 -0700 (PDT)
MIME-Version: 1.0
References: <CAMtubr3CGwYZ49KQQ93Y5+g8a_t_+pZtXFP0eqYYOJdEedLDPw@mail.gmail.com> <CACsn0cnmvVXzkEidafOgV7rDWW95g3yLxYvXnLXdEYg=vfaP-g@mail.gmail.com> <CAMtubr17Sv3HmokvF6DmqjqQDMO+xiZEbyhzn9_RMmgEXPiNfQ@mail.gmail.com> <CACsn0c=9w=_EmqTx0WkNSna_zCyfUsriKjXn2ixb1J+=SBQHMw@mail.gmail.com> <CAMtubr2YPJBkfbuOLVde4rxzVbFamSN4QGhrzgh9_Ae8CGh7rw@mail.gmail.com> <CADNypP8WFChpb7yW8qJaJAzv156z+mdm1NtRXS2c-oehngcjEA@mail.gmail.com> <CABcZeBPxUnO4ijfeZi-xD+07K3aSwqG4cd4t_jT2v3E=51EVSQ@mail.gmail.com> <CAFpG3gctxH-n-ygmNFRktrwxPo4MdR3VMoqM04-mV8HbJOpVvQ@mail.gmail.com> <CABcZeBMSwUPTWMcuq1GEU7zBh4_fmxg1nCRAPqRHUJqWp53hig@mail.gmail.com> <CAMtubr2ASZv1=ZOW5-riGXkwXZwb4TM+HU6_ANQTqFGKbMmomA@mail.gmail.com>
In-Reply-To: <CAMtubr2ASZv1=ZOW5-riGXkwXZwb4TM+HU6_ANQTqFGKbMmomA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Sun, 22 Jun 2025 06:31:22 -0700
X-Gm-Features: Ac12FXzifiYz7_4O37wgHYdghWUadlHVdYrcItY9bxNPVnEN34iltJnyLFzZEjs
Message-ID: <CACsn0cnf5P7C33c8KoqvRLKe99nFnRsUZdwXUO7g_Sr3p0TqMw@mail.gmail.com>
To: Yaroslav Rosomakho <yrosomakho=40zscaler.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="00000000000018d5ee0638291de6"
Message-ID-Hash: YYSP4GNYM7BKR5XJ26UXHKDW7A3OHBY7
X-Message-ID-Hash: YYSP4GNYM7BKR5XJ26UXHKDW7A3OHBY7
X-MailFrom: watsonbladd@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tls.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "<tls@ietf.org>" <tls@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [TLS] Re: [External⚠️] Re: Certificate Update in TLS
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/r9T8PuGCir6PJDh9zAKKAQUQxZk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Owner: <mailto:tls-owner@ietf.org>
List-Post: <mailto:tls@ietf.org>
List-Subscribe: <mailto:tls-join@ietf.org>
List-Unsubscribe: <mailto:tls-leave@ietf.org>

On Sun, Jun 22, 2025, 5:14 AM Yaroslav Rosomakho <yrosomakho=
40zscaler.com@dmarc.ietf.org> wrote:

> Hi Eric,
>
> There are two groups of cases with long-lived sessions that I regularly
> have to work with:
>
> 1. VPNs and VPN-like encapsulations using UDP/DTLS, TCP/TLS or QUIC. The
> underlying transport for site-to-site tunnels can be very stable -
> particularly with QUIC transport. On well connected sites these tunnels can
> easily stay up for  months. TLS reconnection can be very disruptive as
> encapsulated transport flows would be typically terminated - especially in
> the case of tunneling technologies that directly encapsulate TCP segment
> data or UDP datagrams without inner IP layer such as HTTP
> CONNECT/CONNECT-TCP/CONNECT-UDP.  On top of that, load balancing in
> distributed environments does not help as the new connection is likely to
> land on a different node, so graceful recovery is not always possible.
>
> 2. IoT control and metric streaming. Some applications of IoT are very
> sensitive and loss of connectivity can carry significant risks. Transport
> reconnection can lead to a brief loss of control or missing metric
> information, hence a full blown reconnection and a new handshake to
> revalidate peer certificate is not acceptable. Ability to signal
> certificate update in TLS session would help mitigate identity and
> certificate private key compromise risks as explained previously without
> disrupting connectivity. While recovery can be graceful, reconnection does
> take a bit of time - particularly if the IoT compute power is very limited.
>

Why can't you spin up the new session, move the traffic and then tear down
the old one?

>
>
> Best Regards,
> Yaroslav
>
> On Sun, Jun 22, 2025 at 4:37 AM Eric Rescorla <ekr@rtfm.com> wrote:
>
>>
>>
>> On Sat, Jun 21, 2025 at 4:05 AM tirumal reddy <kondtir@gmail.com> wrote:
>>
>>> 3GPP also has a requirement to secure SCTP-based communications using
>>> DTLS, which involves long-lived sessions. One of the key security
>>> requirements is that mutual authentication must be used, with periodic
>>> re-authentication to allow certificate updates (see Section 4
>>> <https://www.ietf.org/archive/id/draft-tuexen-tsvwg-sctp-dtls-req-00.html#section-4> for
>>> more details).These connections are expected to remain stable for long
>>> periods of time.
>>>
>>
>> What I'm trying to push on here is whether it's in fact a good pattern to
>> have
>> long-lived sessions like this where it's not straightforward to
>> reinitialize. There
>> are any number of reasons why a connection might fail (this is especially
>> true with TLS where any error in the TCP data will cause TLS connection
>> failure) and so you want to be able to recover gracefully from those. Once
>> you have that kind of graceful recovery mechanism, it seems like it would
>> be straightforward to use that for certificate expiry; even with the new
>> rules
>> we're talking weeks of uptime before the certificate expires.
>>
>> -Ekr
>>
>>
>>> Cheers,
>>> -Tiru
>>>
>>> On Sat, 21 Jun 2025 at 06:13, Eric Rescorla <ekr@rtfm.com> wrote:
>>>
>>>> Hi Rifaat,
>>>>
>>>> I'm obviously excited to see people encrypting massive amounts of
>>>> traffic, but I did want to pressure test this use case a bit.
>>>>
>>>> I have two questions:
>>>>
>>>> 1. What's the mean time between failure of these connections?
>>>> 2. What do you do if the connection fails? Do you have some way to
>>>> cleanly restart?
>>>>
>>>> Thanks,
>>>> -Ekr
>>>>
>>>>
>>>>
>>>> On Fri, Jun 20, 2025 at 5:31 PM Rifaat Shekh-Yusef <
>>>> rifaat.s.ietf@gmail.com> wrote:
>>>>
>>>>> We have a use case where optical systems establish a persistent TLS
>>>>> channel that is then used to mint keys used to encrypt massive amounts of
>>>>> traffic over fiber optic lines.
>>>>> This mechanism could be useful to allow the systems to maintain that
>>>>> TLS channel during certificate rotation, without tearing down the
>>>>> connection.
>>>>>
>>>>> Regards,
>>>>>  Rifaat
>>>>>
>>>>>
>>>>> On Fri, Jun 20, 2025 at 6:55 PM Yaroslav Rosomakho <yrosomakho=
>>>>> 40zscaler.com@dmarc.ietf.org> wrote:
>>>>>
>>>>>> I don't believe certificates expire just because of key compromise.
>>>>>> Hosts could be decommissioned, domains could be repossessed, services could
>>>>>> move around. Certificate Update provides assurance that the peer still has
>>>>>> the right to claim original identity.
>>>>>> Let's say an IoT device established a session with a vendor server to
>>>>>> stream sensitive diagnostic data. The vendor could change server hosting
>>>>>> provider, update DNS records but forget to shut down the previous instance.
>>>>>> Established connections will stay up though the server effectively lost its
>>>>>> identity. Sadly, these things do happen in the wild.
>>>>>>
>>>>>> As of key compromise, there are two separate risks:
>>>>>> - compromised private key of certificate
>>>>>> - compromised session key
>>>>>>
>>>>>> A Certificate with a potentially compromised private key needs to be
>>>>>> revoked and replaced with a fresh one. However, rekey of the session (Key
>>>>>> Update or Extended Key Update) does not bring assurance that the connection
>>>>>> is established with the correct peer - it could well be an imposter in
>>>>>> possession of a stolen private key. Certificate Update provides that
>>>>>> assurance.
>>>>>>
>>>>>> Extended Key Update is about reducing risks associated with the
>>>>>> compromised session key.
>>>>>>
>>>>>> Best Regards,
>>>>>> Yaroslav
>>>>>>
>>>>>> On Fri, Jun 20, 2025 at 11:29 PM Watson Ladd <watsonbladd@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> On Fri, Jun 20, 2025 at 3:20 PM Yaroslav Rosomakho
>>>>>>> <yrosomakho@zscaler.com> wrote:
>>>>>>> >
>>>>>>> > Hello Watson,
>>>>>>> >
>>>>>>> > On Fri, Jun 20, 2025 at 10:50 PM Watson Ladd <
>>>>>>> watsonbladd@gmail.com> wrote:
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> What exactly is the rationale here? Do we expect that identies
>>>>>>> >> actually change when a certificate expires?
>>>>>>> >
>>>>>>> >
>>>>>>> > Certificate confirms identity information for a certain period of
>>>>>>> validity as long as it is not revoked. Communication with an endpoint that
>>>>>>> produces a revoked or expired certificate is deemed to have unacceptable
>>>>>>> risk and typically denied. However, this risk applies to established
>>>>>>> sessions in exactly the same way as it applies to new sessions. The
>>>>>>> rationale is to ensure that the peer identity is still valid by the time
>>>>>>> the original certificate expired or got revoked.
>>>>>>>
>>>>>>> Certificate expiry is in some sense driven by the risk of key
>>>>>>> compromise. If the key is compromised it fails to provide assurance
>>>>>>> as
>>>>>>> to the identity of the counterparty. But that compromise could also
>>>>>>> happen to the keys protecting the session over that length of time
>>>>>>> (yes, there are some differences in threat model depending on how
>>>>>>> they
>>>>>>> are stored). In that case this draft doesn't actually protect
>>>>>>> anything: an attacker with those keys is able to see the traffic
>>>>>>> going
>>>>>>> through and continue to exploit the session.
>>>>>>>
>>>>>>> This isn't really a problem of identities expering (how could they)
>>>>>>> but rather risk limitation.
>>>>>>>
>>>>>>> The reason I belabor this point is the conclusion: we have to rekey
>>>>>>> the connection as well to get the assurances we want. The mechanism
>>>>>>> here doesn't do that.
>>>>>>>
>>>>>>> >
>>>>>>> > TLS 1.2 and prior could perform re-key and re-authentication
>>>>>>> through rehandshake. As the very generic rehandshake carried unacceptable
>>>>>>> security risks it was removed in TLS 1.3. Extended Key Update brings back
>>>>>>> re-key in a secure way. Similarly, Certificate Update proposal is intended
>>>>>>> to bring back re-authentication in a very limited controlled fashion.
>>>>>>> >
>>>>>>> > Best Regards,
>>>>>>> > Yaroslav
>>>>>>> >
>>>>>>> >
>>>>>>> > This communication (including any attachments) is intended for the
>>>>>>> sole use of the intended recipient and may contain confidential,
>>>>>>> non-public, and/or privileged material. Use, distribution, or reproduction
>>>>>>> of this communication by unintended recipients is not authorized. If you
>>>>>>> received this communication in error, please immediately notify the sender
>>>>>>> and then delete all copies of this communication from your system.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Astra mortemque praestare gradatim
>>>>>>>
>>>>>>
>>>>>>
>>>>>> This communication (including any attachments) is intended for the
>>>>>> sole use of the intended recipient and may contain confidential,
>>>>>> non-public, and/or privileged material. Use, distribution, or
>>>>>> reproduction of this communication by unintended recipients is not
>>>>>> authorized. If you received this communication in error, please
>>>>>> immediately notify the sender and then delete all copies of this
>>>>>> communication from your system.
>>>>>> _______________________________________________
>>>>>> TLS mailing list -- tls@ietf.org
>>>>>> To unsubscribe send an email to tls-leave@ietf.org
>>>>>>
>>>>> _______________________________________________
>>>>> TLS mailing list -- tls@ietf.org
>>>>> To unsubscribe send an email to tls-leave@ietf.org
>>>>>
>>>> _______________________________________________
>>>> TLS mailing list -- tls@ietf.org
>>>> To unsubscribe send an email to tls-leave@ietf.org
>>>>
>>>
>
> This communication (including any attachments) is intended for the sole
> use of the intended recipient and may contain confidential, non-public,
> and/or privileged material. Use, distribution, or reproduction of this communication
> by unintended recipients is not authorized. If you received this
> communication in error, please immediately notify the sender and then delete
> all copies of this communication from your system.
> _______________________________________________
> TLS mailing list -- tls@ietf.org
> To unsubscribe send an email to tls-leave@ietf.org
>