发表日期:2015-10 文章编辑:小灯 浏览次数:3098
前提假设:
$ scp domain.crt common.key a1:/etc/nginx/ssl ``` 服务器 ``` # cd /etc/nginx/ssl # chmod 400 /etc/nginx/ssl/common.* ```2. 配置服务器SSL内容,打开`/etc/nginx/nginx.conf`文件,参考修改以下内容 ``` http { ## # SSL Settings ##ssl_certificate common.crt; ssl_certificate_key common.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers on;## } ```3. 打开相应的sites-enabled下文件在server里面添加一句`listen 443 ssl;`4. 重启nginx服务5. **待续** ---- ####其它:- Nginx PPA: `ppa:nginx/stable` - Mozilla Generate: https://mozilla.github.io/server-side-tls/ssl-config-generator/