Ubuntu wget错误:无法验证本地主机';s证书,…遇到自签名证书
如何在ngnix上实现安全的https连接 我想在本地主机上实现https。我正在ubuntu 20.04上运行http服务器nginx 我所做的就是发出命令Ubuntu wget错误:无法验证本地主机';s证书,…遇到自签名证书,ubuntu,nginx,https,certificate,wget,Ubuntu,Nginx,Https,Certificate,Wget,如何在ngnix上实现安全的https连接 我想在本地主机上实现https。我正在ubuntu 20.04上运行http服务器nginx 我所做的就是发出命令 sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/localhost.key -out /etc/ssl/certs/localhost.crt -config /tmp/openssl 然后我将nginx配置为使用ssl
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/localhost.key -out /etc/ssl/certs/localhost.crt -config /tmp/openssl
然后我将nginx配置为使用ssl作为
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate /etc/ssl/certs/localhost.crt;
ssl_certificate_key /etc/ssl/private/localhost.key;
刷新并重新加载nginix…好的。一切都很顺利
但是当我尝试连接到https://localhost
我得到了
然后我点击了Advance并继续..然后我在Firefox中得到了一个MOZILLA\u PKIX\u错误\u SELF\u SIGNED\u CERT错误
图片是
然后我可以查看页面,但连接似乎不安全
如何获得安全连接
我试过wget
结果是
--2021-05-11 05:21:37-- https://localhost/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:443... connected.
ERROR: cannot verify localhost's certificate, issued by ‘CN=localhost,OU=Development,O=Localhost CA,L=Rochester,ST=New York,C=US’:
Self-signed certificate encountered.
To connect to localhost insecurely, use `--no-check-certificate'.
我试过邮递员仍然收到签名密钥错误
如何消除此签名密钥中间证书错误
我参考了教程。。。
我使用的操作系统是ubuntu 20.04,我试图实现它的服务器是nginx
如何建立受信任的https本地主机连接..如果有任何帮助,我们将不胜感激我相信除了生成证书之外,您还需要将证书包含在浏览器的证书存储中。也就是说,这不是一个真正的编程问题,所以可能应该转移到超级用户或类似的频道。我试图将其添加到商店中。。连接仍然不安全…无论如何,谢谢ewong…对于我的评论,我已经将这个问题转移到超级用户…祝你好运!(旁注:我认为您还需要确保信任浏览器中的证书)。但这是一个猜测。@ewong我这样做了……但仍然显示连接不安全