自签名根证书仍然无效 [英] Self-signed root certificate is still not valid
问题描述
我想在Mac上使用localhost测试我的网站.
我遵循了
该消息表明浏览器不接受证书,并且当您使用错误的域,证书过期(而不是您的情况)或浏览器时可能会发生无法识别证书来源的证书颁发机构(很可能是这种情况).
在创建自签名SSL证书时,浏览器(Firefox)也可以返回
无效的证书颁发机构
Chrome会说
不安全
这很好,因为使用的是自签名证书.
I want to test my website in Mac with localhost.
I followed this step to generate localhost.crt
and localhost.key
. Then, I double-clicked localhost.crt
to insert it in System
of Keychains
and then set Always Trust
.
Then, I launched the website in Chrome. I still see Your connection to this site is not secure
and Certificate (Invalid)
.
Does anyone know how to fix this?
The message indicates that the browser didn’t accept the certificate and can happen when you got the wrong domain, the certificate expired (not your case) or the browser doesn't recognize the certificate authority from where the certificate came from (most likely that's the case).
When creating a self signed SSL certificate, the browser (Firefox) can also return
Invalid Certification Authority
And the Chrome can say
Not secure
This is fine since one uses a self-signed certificate.
这篇关于自签名根证书仍然无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!