使用openssl在本地自动生成密钥,访问测试显示不安全连接,怎么解决这个问题?
配置文件如下:
server {
listen 443;
server_name localhost;
**ssl on;
ssl_certificate ssl/server.crt;
ssl_certificate_key ssl/server.key;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;**
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
}
访问测试结果如下:
因为你没有配置证书,可以了解一下Let's Encrypt,能获取免费的证书