openssl rsa -in server.key -out server.key.unsecure
사용server.key.unsecure替换原来的KEY
nginx https/ssl 配置:
서버
{
443 SSL spdy 듣기;
ssl on;
ssl _인증서/www/1_xxxx_bundle. crt;
ssl_certificate_key /www/xx.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers 켜기 ;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384 :ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA :DHE-RSA-AES128-SHA:RC4-SHA:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!DSS:!PKS;
ssl_session_cache 내장:1000 공유:SSL:10m;
#error_page 404 /404.html;
include 활성화-php.conf;
server_name www.tongxinmao.com;
index Portal.php index.php default.html default.htm default.php ;
루트 /www
include dz.conf;
#error_page 404 /404.html;
위치 ~ [^/].php(/|$)
{
# 코멘트 try_files $uri =404; pathinfo 활성화
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#경로 정보 포함. conf;
}
위치 /nginx_status
{
stub_status on;
access_log off;
}
위치 ~ .*.(gif|jpg|jpeg|png|bmp |swf)$
{
만료 30일;
}
위치 ~ .*.(js|css)?$
{
만료 12h;
}
access_log /home/wwwlogs/lnmp.log access;
}
另외还可以加入如下代码实现80端伯向到443
以上就介绍了NGINX는 HTTPS를 다운로드하여 PEM 비밀번호 문구를 입력하세요.