我已经编译了支持ssl的NGINX 1.4.1,并希望通过以下代码来确保我的configuration:
ssl_prefer_server_ciphers on; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers AES128-GCM-SHA256:AES256-GCM-SHA384:RC4-SHA:AES128-SHA256:AES256-SHA256; ssl_session_cache shared:TLSSL:16m; ssl_session_timeout 10m;
这是我得到的错误,我不明白为什么它出现:
nginx: [emerg] unknown directive "ssl_protocols SSLv3"
我的nginxconfiguration:
nginx version: nginx/1.4.1 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) TLS SNI support enabled configure arguments: --with-http_dav_module --with-http_gzip_static_module --with- http_stub_status_module --prefix=/opt/nginx --with-http_perl_module --with-http_ssl_module --with-perl=/usr/bin/perl --with-http_geoip_module --with-http_realip_module
也许有人知道我在做什么错了?
出于安全原因,即使您调用SSL模块,SSLv3也将被禁用。
这里是跟踪信息,你可以find修复,如果你真的想使用SSLv3: https : //trac.nginx.org/nginx/ticket/653
我的理解是SSL默认情况下是不启用的。 build立时是否添加了--with-http_ssl_module标志? 它需要openssl。