Nginx配置SSL错误“ERR_SSL_VERSION_OR_CIPHER_MISMATCH”

时间:2017-09-18 09:05:42

标签: ssl nginx

我为https服务配置了我的nginx,但它不起作用。 chrome显示错误“ERR_SSL_VERSION_OR_CIPHER_MISMATCH”。看起来浏览器想要一个我的nginx不能支持的ssl协议?但是,我按照CA的配置文件来配置我的nginx.conf文件,如下所示。

我运行curl https://ltp-cloud.com并收到错误“curl:(35)错误:14077410:SSL例程:SSL23_GET_SERVER_HELLO:sslv3警报握手失败”

有我的nginx.conf:

```

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
    worker_connections 768;
# multi_accept on;
}

http {

server {
    listen 443;
    server_name ltp-cloud.com;
    ssl on;
    root html;
    index index.html index.htm;
    ssl_certificate /etc/nginx/ssl/cert/214234087720826.pem;
    ssl_certificate_key /etc/nginx/ssl/cert/214234087720826.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    location / {
        root html;
        index index.html index.htm;
    }
}

}

我的Nginx版本如下,我检查了“--with-http_ssl_module”选项是否打开。

➜  nginx nginx -V
nginx version: nginx/1.4.6 (Ubuntu)
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/build/nginx-hzyca8/nginx-1.4.6/debian/modules/nginx-auth-pam --add-module=/build/nginx-hzyca8/nginx-1.4.6/debian/modules/nginx-dav-ext-module --add-module=/build/nginx-hzyca8/nginx-1.4.6/debian/modules/nginx-echo --add-module=/build/nginx-hzyca8/nginx-1.4.6/debian/modules/nginx-upstream-fair --add-module=/build/nginx-hzyca8/nginx-1.4.6/debian/modules/ngx_http_substitutions_filter_module

请求您的帮助。 谢谢!

0 个答案:

没有答案