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. -- Sincerely, Demi Marie Obenour (she/her/hers)
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html
