小程序调试的时候提示TLS的问题,socket连接失败,错误消息是-9081
我们在nginx里面做的配置,服务器版本是Windows server 2012 R2
下面是nginx的配置:
server {
listen 443;
server_name www.yuanline.cn; #填写绑定证书的域名
ssl on;
ssl_certificate 1_ws.yuanline.cn_bundle.crt;
ssl_certificate_key 2_ws.yuanline.cn.key;
ssl_session_timeout 5m;
SSLProtocol -all +TLSv1 +TLSv1.1 +TLSv1.2
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GC$
#ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
#ssl_ciphers TLS13-AES-128-GCM-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://www.yuanline.cn; #这里是我要代理的apache的域名
#root html; #站点目录
index index.html index.htm;
}
}