【发布时间】:2012-02-07 23:12:56
【问题描述】:
X509v3 可以在subject Alternative Name 扩展中包含IP 地址字段。
- 作为验证服务器身份的应用程序,IP地址字段应该如何验证?
- 如果 DNS 名称和 IP 地址都存在?是否有偏好?
-
dirName字段有什么用?
【问题讨论】:
标签: google-chrome openssl x509 chromium
X509v3 可以在subject Alternative Name 扩展中包含IP 地址字段。
dirName 字段有什么用?【问题讨论】:
标签: google-chrome openssl x509 chromium
我之前读过 RFC 2818,但一定错过了这部分。
In some cases, the URI is specified as an IP address rather than a
hostname. In this case, the iPAddress subjectAltName must be present
in the certificate and must exactly match the IP in the URI.
【讨论】:
chromium 浏览器的源代码,他们确实检查了 IP 地址。我也会将此问题标记为铬源,以查看其他人是否有任何 cmets。顺便感谢那个 RFC。
我的回答是基于我在 TLS/SSL 方面的经验。
IP 地址匹配,您必须实现它。你检查过OpenSSL documentation吗?
【讨论】:
CN 不匹配,浏览器会检查此字段。
CN 不匹配时,浏览器会查看subjectAltName。如果您输入的是 IP 而不是域,就会出现这种情况。也许我的英语不够完美。用我自己的语言,我可能会写得更准确一些。