Nginx ssl握手失败,未知SSL协议错误

时间:2016-03-30 13:17:17

标签: apache ssl nginx

我在Debian上安装了nginx

nginx -V
nginx version: nginx/1.2.1
TLS SNI support enabled

当我做的时候

 curl -1 -v "https:<my domain>"

我得到了

 * About to connect() to <my domain> port 443 (#0)
 *   Trying <my ip>... connected
 * Connected to <my domain> (<my ip>) port 443 (#0)
 * SSLv3, TLS handshake, Client hello (1):
 * Unknown SSL protocol error in connection to <my domain>:443 
 * Closing connection #0
 curl: (35) Unknown SSL protocol error in connection to <my domain>:443

我的nginx充当apache的代理,nginx vhost配置如下

server {

    listen 443 ssl;
    server_name  <my domain>;

    ssl on;
    ssl_certificate /etc/pki/tls/certs/wildcard.<my domain>-chained.crt;
    ssl_certificate_key /etc/pki/tls/private/wildcard.<my domain>.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    location / {
        proxy_pass http://<my ip>:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

请在此处提出建议。我可以使用有效证书从浏览器访问该URL。

0 个答案:

没有答案