您当前的位置: 首页 >  nginx

星球守护者

暂无认证

  • 1浏览

    0关注

    641博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

nginx 修复TLS1.0,TLS1.1协议漏洞

星球守护者 发布时间:2021-02-08 20:20:53 ,浏览量:1

首先通过检测命令:
nmap --script ssl-enum-ciphers -p 443 ip地址

开启的情况: 在这里插入图片描述 在这里插入图片描述

修复
# 原始配置 
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2 ; 
# 修复配置 
ssl_protocols TLSv1.2 ;
完整配置
# HTTPS server
server {
    listen       443 ssl;
    server_name  192.168.1.100;
    keepalive_timeout  70;

    ssl_certificate      cert/mycert.pem;
    ssl_certificate_key  cert/privatekey.pem;
    
    #ssl_certificate      cert/server.crt;
    #ssl_certificate_key  cert/server_rsa_private.pem.unsecure;

    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;

	#ssl_protocols TLSv1 TLSv1.1 TLSv1.2 ;
	ssl_protocols TLSv1.2 ;
    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;

    location / {
        root   html;
        index  index.html index.htm;
    }
    
	# 映射服务器集群
	location /test/{
		proxy_set_header  X-Real-IP        $remote_addr;
		proxy_pass http://test;
	}
    location /status{
        stub_status on;
    }
}

关闭的情况: 在这里插入图片描述

关注
打赏
1662051426
查看更多评论
立即登录/注册

微信扫码登录

0.0386s