<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Configuration of SSL Certification

    Posted on 2013-09-02 16:44 H2O 閱讀(155) 評論(0)  編輯  收藏

    Some helpfull Links:

    http://nginx.org/en/docs/http/configuring_https_servers.htm
    http://blog.csdn.net/kunoy/article/details/8239653

    http://zou.lu/nginx-https-ssl-module/

    http://blog.csdn.net/wzy_1988/article/details/8549290
    http://my.oschina.net/zhlmmc/blog/42125
    http://www.quany.info/web-design/nginx-400-bad-request-the-plain-http-request-was-sent-to-https-port.html

    You should have received a your_domain_name.pem file from DigiCert in an email when your certificate was issued. If you have that file you can skip to step 3. Otherwise, start with step 1.

    1. Copy the Certificate files to your server.

      Log in to download your Intermediate (DigiCertCA.crt) and Primary Certificates (your_domain_name.crt) from within your DigiCert Customer Account. Copy them, along with the .key file you generated when you created the CSR, to the directory on your server where you will keep your certificate and key files. Make them readable by root only to increase security.

    2. Concatenate the primary certificate and intermediate certificate.

      You need to concatenate the primary certificate file (your_domain_name.crt) and the intermediate certificate file (DigiCertCA.crt) into a single pem file by running the following command:

      cat your_domain_name.crt DigiCertCA.crt >> bundle.crt

    3. Edit the Nginx virtual hosts file.

      Now open your Nginx virtual host file for the website you are securing. If you need your site to be accessible through both secure (https) and non-secure (http) connections, you will need a server module for each type of connection. Make a copy of the existing non-secure server module and paste it below the original. Then add the lines in bold below:

       

      server {  listen   443;  ssl    on; ssl_certificate    /etc/ssl/your_domain_name.crt; (or .pem) ssl_certificate_key    /etc/ssl/your_domain_name.key;  server_name your.domain.com; access_log /var/log/nginx/nginx.vhost.access.log; error_log /var/log/nginx/nginx.vhost.error.log; location / { 	root   /home/www/public_html/your.domain.com/public/; 	index  index.html; }  }

      Adjust the file names to match your certificate files:

      • ssl_certificate should be your primary certificate combined with the intermediate certificate that you made in the previous step (e.g. your_domain_name.crt).
      • ssl_certificate_key should be the key file generated when you created the CSR.

       

    4. Restart Nginx.

      Run the following command to restart Nginx:

      sudo /etc/init.d/nginx restart



    Amazing Tutorial

    http://www.digicert.com/ssl-certificate-installation-nginx.htm
    http://www.erawanarifnugroho.com/2013/07/08/configuring-wildcard-alphassl-from-centrio-host.html
    http://lowendtalk.com/discussion/11752/install-ssl-problem-in-nginx



    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導(dǎo)航:
     

    posts - 0, comments - 21, trackbacks - 0, articles - 101

    Copyright © H2O

    主站蜘蛛池模板: 色天使亚洲综合一区二区| 中文字幕无线码中文字幕免费| 国产小视频免费观看| 国产乱子伦精品免费视频| 亚洲沟沟美女亚洲沟沟| 国产老女人精品免费视频| a级毛片毛片免费观看久潮| 国产成人亚洲合集青青草原精品| 国产国产人免费人成免费视频| 久久久久久久99精品免费观看| 亚洲一区二区三区精品视频| 亚洲 另类 无码 在线| 18禁美女裸体免费网站| 九九全国免费视频| 狠狠色伊人亚洲综合网站色 | 在线观看免费人成视频色9| 全黄A免费一级毛片| 亚洲成人在线免费观看| 国产亚洲色婷婷久久99精品91| 国产精品免费观看久久| 在线观看免费无码专区| 女bbbbxxxx另类亚洲| 亚洲大香人伊一本线| 亚洲无人区一区二区三区| 午夜视频在线在免费| 免费A级毛片无码A∨中文字幕下载| 妇女自拍偷自拍亚洲精品| 亚洲三级视频在线观看| 亚洲av中文无码乱人伦在线咪咕| 全黄a免费一级毛片人人爱| 成年黄网站色大免费全看| 国产一精品一AV一免费| 免费一级毛suv好看的国产网站 | 四虎精品免费永久免费视频| 亚洲人成网站18禁止| 亚洲日韩图片专区第1页| 亚洲宅男天堂在线观看无病毒| 免费萌白酱国产一区二区| 成人网站免费观看| 18国产精品白浆在线观看免费| 日本视频在线观看永久免费 |