Re: [PATCH] Fix openssl cert name comparison.
"Kevin J. McCarthy" <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <aebc7Bd1oZn7Exy1@qinghai> |
On Mon, Apr 20, 2026 at 06:20:52PM +0200, Steffen Nurpmeso wrote: >Kevin J. McCarthy wrote in > <[email protected]>: > |RFC 6125 section 6.4.4 says the client should not check the > |Common Name if the cert contains any DNS entries. > >Note RFC 9525 completely forbids commonName, and .. now my memory >is a bit flaky, but i am pretty sure i saw messages on some IETF >list fly by, where people who have an idea claimed they have not >seen this in quite some time. >I (i created the commit on 2023-11-09, [2187cf6eff6], so likely >around then i must have read all that) wrote: > >+ /* RFC 2818, 3.1. Server Identity >+ * If a subjectAltName extension of type dNSName is present, that MUST >+ * be used as the identity. Otherwise, the (most specific) Common Name >+ * field in the Subject field of the certificate MUST be used. Although >+ * the use of the Common Name is existing practice, it is deprecated and >+ * Certification Authorities are encouraged to use the dNSName instead. >+ * >+ * RFC 9525: >+ * The server identity can only be expressed in the subjectAltNames >+ * extension; it is no longer valid to use the commonName RDN, known >+ * as CN-ID in [VERIFY=RFC 6125=predecessor]. */ thank you steffen. I think for now, I will commit the change to master. It's probably safe by now to make the change, but I don't think the severity of the issue merits making the change in a stable release. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmnm3OwACgkQre92hIAx a9rhBg//cNUJ/2fOMMEXB4BmLNXtO6f7CPgQnDqRBSimW0Yq9qVWnQtiEedjvOSE yXLQvcNrnj+QCy6L92ZQ61C9wOgD3B306XApm6pLzhAJ9eGsMNRE3BqetKcHCc9U 9U+cIWVSOXB7VTcdkRw3frRsGcAXPFB7hdE6NpAy9yDwYLnvE2czRlrMmgA+KwWa dBUqb6iEKciaIvbdZJCOsZdGUJ1kqgXxDCkqeP7s6U0f1JkEypZfLPYHCEy7+wHB pcH2A/UeTp+xql+YjteU0t9e33Oudm6HUj0o2yAWUJifq1k59vTfr4q4R4q+a4Aa Ij5HOOAOiUBJoXnwnkNVEceBeh7pjF0xlQPQPkO8pBLzv2Fikef0MT2ZLdfauvbH sXfDJO5j98EGrffy+AvLq36kEshyJICINO95b1S4/NqyX5dBry1AuiZ2AWfPkpjL psKFxwNNkrvYm737vn/IK2F57pJO7OK13otdVaDvd6vSgwBeDn/WcgS2qzlx+Xjl bepdG4HiSPeSu/TvuF7VK2Sp/gK6/fIfgXU91YMuLCtrDApEtcV/NonznU2gYtyg raeEyUSsqxCvugCwCDS4GIG4LVZAj5nv9RtMCUKrXh2Al0Z0x2dRk7pcRIOfb00r CbblsianVgl9Vs37/K3FmamHeKFHNBr3fa4fYDnCvLTbb60pi1c= =4ETG -----END PGP SIGNATURE-----