pro*_*sti 5 certificate nginx https ssl-certificate
我试图尽可能多地跟进此线程,但我总是收到此消息:
This site can’t be reached
example.com unexpectedly closed the connection.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_CLOSED
ReloadHIDE DETAILS
Run Code Online (Sandbox Code Playgroud)
在铬。
我所拥有的配置部分是这样的:
server {
listen 80;
listen 443 default_server ssl;
#ssl on;
server_name example.com www.example.com;
Run Code Online (Sandbox Code Playgroud)
这是我在本地 127.0.0.1 计算机上的测试网站 example.com。
您必须生成自签名证书,或者您可以查看 Let's Encrypt 项目以获得免费且公开信任的证书。
HTTPS 用于安全流量,如果没有公钥和私钥的证书,您将无法进行加密。
添加链接:https : //letsencrypt.org/