Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: Dropping CN fallback
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Jeffrey Walton via curl-library <curl-library_at_lists.haxx.se>
Date: Sat, 21 Nov 2026 02:23:21 -0500
On Sat, Nov 21, 2026 at 2:13 AM Demi Marie Obenour via curl-library <
curl-library_at_lists.haxx.se> wrote:
> Putting the domain name in the CN has been deprecated for a long time.
> Furthermore, it is very risky for security, because different TLS
> libraries are inconsistent in checking the CN against name constraints.
> Notably, OpenSSL 4.1 has a regression from OpenSSL 4.0 in this area.
>
> I'd like to propose a future-proof solution: drop CN fallback and only
> check the SAN. It's backwards-incompatible, but it's the simplest
> way to ensure these problems never happen again. It also will
> work with anything that is not using a very-deprecated way to build
> the certificate. Furthermore, it's consistent with browsers, which
> dropped support for putting the domain name in the CN quite a while ago.
What the browsers do is specified in the CA/Browser Forum (CA/BF) Baseline
Requirements (BR). It is colloquially known as the "Web PKI." It is one
way to run a PKI.
The IETF has slightly different rules, and it does not include deprecating
use of Common Name (CN). The IETF provides the "Internet PKI." It is
another way to run a PKI.
Since cURL is a general purpose tool, I think it would be wise to support
at least both PKIs.
Jeff
Date: Sat, 21 Nov 2026 02:23:21 -0500
On Sat, Nov 21, 2026 at 2:13 AM Demi Marie Obenour via curl-library <
curl-library_at_lists.haxx.se> wrote:
> Putting the domain name in the CN has been deprecated for a long time.
> Furthermore, it is very risky for security, because different TLS
> libraries are inconsistent in checking the CN against name constraints.
> Notably, OpenSSL 4.1 has a regression from OpenSSL 4.0 in this area.
>
> I'd like to propose a future-proof solution: drop CN fallback and only
> check the SAN. It's backwards-incompatible, but it's the simplest
> way to ensure these problems never happen again. It also will
> work with anything that is not using a very-deprecated way to build
> the certificate. Furthermore, it's consistent with browsers, which
> dropped support for putting the domain name in the CN quite a while ago.
What the browsers do is specified in the CA/Browser Forum (CA/BF) Baseline
Requirements (BR). It is colloquially known as the "Web PKI." It is one
way to run a PKI.
The IETF has slightly different rules, and it does not include deprecating
use of Common Name (CN). The IETF provides the "Internet PKI." It is
another way to run a PKI.
Since cURL is a general purpose tool, I think it would be wise to support
at least both PKIs.
Jeff
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-11-21