ssl-certificate – Chrome自签名通配符证书错误

我用内部系统已经使用相同的通配符证书一段时间了.我已将证书添加(并且可信)到我的OSX Keychain.但是,在尝试使用Chrome访问我的网站时,我仍然收到错误消息:

Attackers might be trying to steal your information from jenkins.kensnet.priv (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID
Subject: *.kensnet.priv
Issuer: *.kensnet.priv
Expires on: Oct 18, 2023
Current date: May 16, 2017

This server could not prove that it is jenkins.kensnet.priv; its security certificate is from [missing_subjectAltName]. This may be caused by a misconfiguration or an attacker intercepting your connection.


您需要重新创建证书并分配SubjectAltName.这适用于OSX 10.11.6和Brew:

openssl req -x509 -sha256 -nodes -days 3650 \
-newkey rsa:2048 -keyout visible.priv.key \ 
-out kensnet.priv.crt -subj "/CN=*.kensnet.priv" \
-reqexts SAN -extensions SAN -config <(cat /usr/local/etc/openssl/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:*.kensnet.priv'))

转载注明原文:ssl-certificate – Chrome自签名通配符证书错误 - 代码日志