nginx+ECC 证书+http2, chrome49,访问无限 CONNECTION_RESET - V2EX
fourstring
V2EX    SSL

nginx+ECC 证书+http2, chrome49,访问无限 CONNECTION_RESET

  •  
  •   fourstring 2016-03-13 15:33:53 +08:00 3106 次点击
    这是一个创建于 3556 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题。我使用的是 Mozilla 的推荐配置文件, nginx-1.9.9 , openssl-1.0.2f , let's encrypt 的 ECC 证书。翻袋了一个维基百科。然而用 chrome 访问时,出现无限 CONNECTION_RESET 错误。尝试换成了普通 RSA 证书,就能正常打开。
    服务端系统是 ubuntu14.04 64 位
    求指点,感谢!

    系统是 OS X 10.11.3

    完整配置文件在下面
    ```
    server {
    server_name g.n4l.pw;
    listen 80;
    location ^~ /.well-known/acme-challenge/ {
    alias /home/wwwroot/challenges/;
    try_files $uri =404;
    }
    }
    server {
    listen 443 ssl http2;
    #listen [::]:443 ssl http2;

    # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate ssl_certificate /path/to/ecc.crt; ssl_certificate_key /path/to/ecc.key; ssl_session_timeout 1d; ssl_session_cache shared:SSL:50m; ssl_session_tickets off; ssl_ecdh_curve secp384r1; # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits ssl_dhparam /path/to/dhparams.pem; # modern configuration. tweak to your needs. ssl_protocols TLSv1.2; ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'; ssl_prefer_server_ciphers on; # HSTS (ngx_http_headers_module is required) (15768000 secOnds= 6 months) add_header Strict-Transport-Security 'max-age=15768000;includeSubDomains;preload'; # OCSP Stapling --- # fetch OCSP records from URL in ssl_certificate and cache them ssl_stapling on; ssl_stapling_verify on; ## verify chain of trust of OCSP response using Root CA and Intermediate certs #ssl_trusted_certificate /root/ssl/intermediate.pem; resolver 8.8.8.8 8.8.4.4; location / { proxy_set_header Host 'zh.wikipedia.org'; 

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass https://zh.wikipedia.org/;
    proxy_set_header Accept-Encoding "";

    } 

    }
    ```

    3 条回复    2016-03-20 23:46:54 +08:00
    wbsdty331
        1
    wbsdty331  
       2016-03-13 15:57:49 +08:00
    重新编译 ssl 模块试试
    Niphor
        2
    Niphor  
       2016-03-13 17:23:20 +08:00
    请问 官方工具指定生成 ECC 证书用哪个参数啊?
    Return2legacy
        3
    Return2legacy  
       2016-03-20 23:46:54 +08:00
    为什么是 ssl_certificate /path/to/ecc.crt ?
    签出来不是 pem 的么?还是说你没有成功签出证书,只有自己的密钥?
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     4713 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 33ms UTC 01:12 PVG 09:12 LAX 17:12 JFK 20:12
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86