Chrome浏览器https访问,提示“Certificate - Subject Alternative Name missing”警告的处理

f12 显示提示信息如下

原因是服务器证书中缺少“使用者可选名称”,需要在提交证书申请是加入该扩展信息,以keytool为例,需增加-ext san=dns:spam,ip:192.168.0.1内容即可。

keytool -keystore keystore.jks -storepass changeme -alias spam -certreq -ext san=dns:spam,ip:192.168.0.1 -file spam.csr


猜你喜欢

转载自blog.csdn.net/yipinrfr/article/details/80424486