Re: [TLS] Trusting self-signed TLS certificates - specifically for HTTPS

Ollie <me@olliejc.uk> Wed, 30 November 2022 19:55 UTC

Return-Path: <me@olliejc.uk>
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 C76D3C1524B1 for <tls@ietfa.amsl.com>; Wed, 30 Nov 2022 11:55:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=olliejc.uk
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 EcUflXUttIIj for <tls@ietfa.amsl.com>; Wed, 30 Nov 2022 11:55:26 -0800 (PST)
Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 07EAEC152584 for <tls@ietf.org>; Wed, 30 Nov 2022 11:55:25 -0800 (PST)
Date: Wed, 30 Nov 2022 19:55:19 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=olliejc.uk; s=protonmail3; t=1669838123; x=1670097323; bh=RladWXJTSQFoOvz4CCAssslVnU8bKRMufj+OswleL5U=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=qTXLZWySmY1LmzexY0H4sWbDc/z3JdUM9h+9ejzCDKIIUySmollzwl8UY8yM5nwew ojVc8Ae2bxnhiqvEHJpUV451n0V5Eq91b24gSPFH6MAlJa3+sYek2jBP70RDdP7hWW Mdm7gLWrL6Juw5yK9sXpuMEBKc7UVg7FeF6IADYWoeyHdjVWlYycYk/rg+HY6+XEDh e52HMfadKJDluri9rj3B657yBmt3gxmxmkh0M2MyRmKoJzMsjxckwYLglUWAi1ROdN AcPVz4mUpKnwmdXmorTili5dqx3kX/ShmgYQTz/AGZTjSUGSTk8XpaLaLO/c0QJTD1 +LYhrhIJ2Lc/w==
To: bas=40cloudflare.com@dmarc.ietf.org
From: Ollie <me@olliejc.uk>
Cc: tls@ietf.org
Message-ID: <kjoYgN8r5zhDDtS1RK3CGuT85R-weT_qKVBO-RR4vW60ZRveRgsHLtXqkcTSoDJYO9Va7POWsx_9Ws_jp3SJ6s168wj-7vRcgFsclwwMQAU=@olliejc.uk>
In-Reply-To: <CAMjbhoXbJamGzM3KK8QU2_Qnu3E9DUvX1A_OvqqUFmbTOtTQrQ@mail.gmail.com>
References: <9jom-o0k2EKlsgFmAQfJqg2oBOK_bEw9D1VvMz3nmF4L4K1vftMPU916SKERU48MSk10IakHBzdPD74CMFYha65rdhg-8PqDpPpArSfYuPI=@olliejc.uk> <CAMjbhoXbJamGzM3KK8QU2_Qnu3E9DUvX1A_OvqqUFmbTOtTQrQ@mail.gmail.com>
Feedback-ID: 19765882:user:proton
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1_TO3qjS6FtIA7IRGFlQwg3r3oc2lIEKl3fBXGL8FBoF4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/fWEhxDjHnWYV5X77dsEvmK1ocaQ>
Subject: Re: [TLS] Trusting self-signed TLS certificates - specifically for HTTPS
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.39
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: Wed, 30 Nov 2022 19:55:31 -0000

Hi Bas,

Good question - my suggestion is for CT logs to check for the DANE records as explained in this git repo: https://github.com/OllieJC/justselfsigned.org
Here's a copy:

Unfortunately, existing CT logs do not support SSCs (self-signed certificates) due to spam concerns (rfc6962). The suggestion (being raised in rfc9162) is for CT logs to check for full DNSSEC compliance and TLSA records when generating a CT log entry for SSCs, which would work in the following way:

1. a new SSPC (Self-Signed Pre-Certificate) is generated with the following:
- only valid domains
- less than 90-day expiry (although this may start in the future)
2. the SSPC signature is added to tlsa._dane TLSA record for every domain
3. SSPC is submitted to a CT log
4. CT log checks for valid domains and associated TLSA signatures and issues an SCT (Signed Certificate Timestamp)
5. SSC (Self-Signed Certificates) is generated from the SSPC to include the SCT
6. SSC signature is added to TLSA records (likely replacing the pre-certificate signature)
7. SSC is submitted to the CT log
8. CT log checks for valid domains, associated TLSA records and a valid SCT

Thanks,
Ollie

-------- Original Message --------
On 29 Nov 2022, 00:04, Bas Westerbaan wrote:

>> In essence, I'm proposing that user agents should trust a fully DNSSEC domain with a TLS certificate set up using DANE, along with changes to CT log submission process to allow self-signed certificates (looking to suggest via rfc9162).
>
> How do you propose we prevent CT from being DoSed by a deluge of self-signed certificates?
>
> Best,
>
> Bas