大网数据广告活动
服务器运维问答

SSL - Common Name not recognized

· 52CE 我爱测

We have recently started creating certificates with subjectAltName in addition to using the CN for server identification and i noticed a problem with CN recognition in the browsers in our case CN => www.example.com SAN => www.mac…

问题原文

原帖链接 · NoviceProgrammer · CC BY-SA 3.0

We have recently started creating certificates with subjectAltName in addition to using the CN for server identification and i noticed a problem with CN recognition in the browsers

in our case

if i try to access the site using the CN the browser complains that the certificate has errors.

Using SAN works fine.

I checked further on this and RFC 6125, section 6.4.4 states -

As noted, a client MUST NOT seek a match for a reference identifier of CN-ID if the presented identifiers include a DNS-ID, SRV-ID, URI-ID, or any application-specific identifier types supported by the client. Therefore, if and only if the presented identifiers do not include a DNS-ID, SRV-ID, URI-ID, or any application-specific identifier types supported by the client, then the client MAY as a last resort check for a string whose form matches that of a fully qualified DNS domain name in a Common Name field of the subject field (i.e., a CN-ID).

Based on this, i concluded that CN and SAN are -

  1. not complimentary and therefore
  2. CN should always be a subset of the list provided in SAN

Is this correct?

Edit: I understand that this is browser specific, i am looking for guidance on the modern browsers (IE11, Edge, Chrome, Firefox, etc..)

已采纳解答

原帖链接 · blafasel · CC BY-SA 3.0

"Although the use of the Common Name is existing practice, it is deprecated and Certification Authorities are encouraged to use the dNSName instead." RFC 2818

And even the RFC 6125 contains the following.

"Move away from including and checking strings that look like domain names in the subject's Common Name." RFC 6125, chap. 1.5

Using CN for DNS names is depricated and isn't recognised by modern browsers like Chrome since version 57.

You should move all DNS names to the subjectAltName section of the certificate.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-10-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。