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

Why does Firefox show SSL_ERROR_BAD_CERT_DOMAIN with a self-signed wildcard certificate, but other browsers do not?

· 52CE 我爱测

I assigned a self signed wildcard certificate to an OpenWRT (LEDE) router LUCI (uHTTPd) system. The CA which signed this certificate got added to all browsers as trusted certificate authoritiy. It works fine on Internet Explorer,…

问题原文

原帖链接 · Michael Uray · CC BY-SA 3.0

I assigned a self signed wildcard certificate to an OpenWRT (LEDE) router LUCI (uHTTPd) system. The CA which signed this certificate got added to all browsers as trusted certificate authoritiy.

It works fine on Internet Explorer, Edge and Chrome, but not on Firefox 58.0.2, which throws the error SSL_ERROR_BAD_CERT_DOMAIN, even when it states on the same error page that the certificate is issued for this domain.

If I issue the certificate directly for the host (no wildcard) then it works fine in FF as well.

What could cause this issue?

已采纳解答

原帖链接 · pmhahn · CC BY-SA 4.0

Your certificate has the following "Subject Alternative Names" (SAN):

  1. DNS:*.mainserver.local
  2. DNS:*.mainserver
  3. DNS:*.mgmt.ctb.co.at
  4. IP:192.168.0.254
  5. IP:192.168.0.9
  6. IP:192.168.10.254
  7. IP:192.168.11.254
  8. IP:192.168.12.254
  9. DNS:mgmt.ctb.co.at
  10. DNS:mainserver.local

Firefox does not like entry 2, as it considers mainserver a TLD and aborts there; the following entries are not checked, so your fw1.mgmt.ctb.co.at never matches entry 3.

I solved a similar problem in our domain be re-ordering the SANs and putting all FQDNs first; you should move your entry 2 to the end.

Firefox issues of interest

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

资料来源与适用范围

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

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

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