<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



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


    網站導航:
     

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

    Copyright © H2O

    主站蜘蛛池模板: 亚洲麻豆精品果冻传媒| 50岁老女人的毛片免费观看| 羞羞视频免费网站含羞草| 亚洲av无码专区青青草原| 免费看的一级毛片| MM1313亚洲国产精品| 亚洲Av无码乱码在线观看性色 | 99久久99久久精品免费看蜜桃| 亚洲av无码精品网站| 99re在线这里只有精品免费| 亚洲色偷偷偷网站色偷一区| 亚洲精品视频在线观看免费| 亚洲喷奶水中文字幕电影| 日本阿v免费费视频完整版| 色在线亚洲视频www| 国产女高清在线看免费观看 | 亚洲国产精品VA在线看黑人| 久久久高清日本道免费观看| 精品亚洲成a人片在线观看| 四虎成年永久免费网站| 亚洲av成人一区二区三区观看在线 | 曰皮全部过程视频免费国产30分钟| 亚洲乱码中文字幕在线| 国产精品极品美女免费观看| 七次郎成人免费线路视频| 国产AV无码专区亚洲AV毛网站| h视频在线观看免费完整版| 亚洲精品国产首次亮相| 国产亚洲欧洲Aⅴ综合一区| 一区二区三区观看免费中文视频在线播放| 亚洲精品视频在线观看视频| 免费无码看av的网站| 国产精品福利在线观看免费不卡| 久久久久亚洲Av无码专| 日本视频免费在线| 最新亚洲成av人免费看| 亚洲伊人久久大香线蕉| 亚洲国产av无码精品| 曰批视频免费40分钟试看天天| 日本亚洲欧美色视频在线播放 | 在线观看av永久免费|