Nginx Restart HTTPS site to enter the PEM pass phrase enter the password

Source: Internet
Author: User
Tags openssl rsa
OpenSSL rsa-in server.key-out server.key.unsecure

replace the original key with Server.key.unsecure

Nginx HTTPS/SSL Configuration:

Server
{
Listen 443 SSL spdy;
SSL on;
SSL_CERTIFICATE/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 on;
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 builtin:1000 shared:ssl:10m;
#error_page 404/404.html;
Include enable-php.conf;
server_name www.tongxinmao.com;
Index portal.php index.php default.html default.htm default.php;
Root/www
Include dz.conf;
#error_page 404/404.html;
Location ~ [^/]\.php (/|$)
{
# comment try_files $uri = 404; To enable PathInfo
Try_files $uri = 404;
Fastcgi_pass Unix:/tmp/php-cgi.sock;
Fastcgi_index index.php;
Include fastcgi.conf;
#include pathinfo.conf;
}
Location/nginx_status
{
Stub_status on;
Access_log off;
}
Location ~. *\. (gif|jpg|jpeg|png|bmp|swf) $
{
Expires 30d;
}
Location ~. *\. (JS|CSS)? $
{
Expires 12h;
}
Access_log/home/wwwlogs/lnmp.log access;
}

In addition, you can also add the following code to enable 80 port redirection to 443

    1. server {
    2. Listen 80;
    3. server_name xxx.com;
    4. Rewrite ^ (. *) https://$server _name$1 permanent;
    5. }


The above describes the Nginx restart HTTPS site to enter the PEM pass phrase password, including the aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.