Victor Duchovni wrote, at 10/03/2008 12:35 PM: > On Fri, Oct 03, 2008 at 10:22:59AM -0400, Jorey Bump wrote: > >> I'm curious about the use of X509v3 Subject Alternative Name in >> certificates, and if they pose any problems when used in production. > > No, these are preferred to CommonName when used to verify DNS names. > See RFC 5280. > >> For example, if I obtain a certificate with the Common Name of >> www.example.com for primary use over HTTP, and add an X509v3 Subject >> Alternative Name of mail.example.com for dual use over SMTP (server) and >> HTTP (for webmail), will there be issues? Is support widespread enough >> to safely implement this approach (assuming I can get a commercial cert >> issued)? > > Who do you expect to be checking your SMTP certificate? (Hint: most > MTAs cannot be configured to check it, and those that can be, are not > so configured by default).
Currently, my smtpd_tls_cert_file is generated by a local CA and other MTAs connect to it without any problem, even though the CN (mail.example.com) doesn't match the MX name (mx.example.com). I haven't generated a local cert that uses DNS Subject Alternative Names, so I'll have to give that a test. However, user mail clients will attempt to verify the certificate (for SMTP and IMAP), as will web browsers (for HTTPS). Since this is becoming increasingly more difficult to overcome for nontechnical users as these clients become more strict, I'm wondering if this approach is feasible, compared to deploying multiple or wildcard certs. Will most modern clients recognize the correct name, or is support still lacking? > This said (or asked rhetorically), when Postfix is checking certs it > will verify subjectAltName. Sendmail can only verify the CN (you can > probably count on one hand the Sendmail sites with CN constraints in their > "access" files). So, MTA verification isn't much of an issue today, but the safest approach would be to use the most likely name sought by a connecting MTA as the CN, then list it and additional names as DNS Subject Alternative Names, correct? Deciding which name to use as the CN is one of the reasons I'm asking.
