On 11/21/26 2:23 AM, Jeffrey Walton wrote:
> On Sat, Nov 21, 2026 at 2:13 AM Demi Marie Obenour via curl-library <
> [email protected]> 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

The problem with the CN is that it serves two different,
mutually-incompatible purposes.

The CN can be human-readable, _or_ it can be a domain name.  The first
cannot be validated against a name constraint.  Not validating the
second against a name constraint is a security hole.  Only using the
SAN makes the behavior unambiguous.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to