使用免費的startssl服務啟用https

來源:互聯網
上載者:User
網站啟用https或使用免費的startssl服務

在網站中使用https關健步驟有:

1. 用自已公司的資訊,產生自已的CSR檔案和key檔案,方法如下之一。

第一種:線上產生[https://www.trustasia.com/tools/csr-generator.htm]
第二種:
openssl req -new -nodes -keyout yourname.key -out yourname.csr
linux命令列產生
第三種:[https://download.startpki.com/startcom/startcomtool.exe] 下載並使用此工具產生

2.使用自已的csr和key檔案在startssl.com上註冊自已的網域名稱,並產生自已的認證crt。

國外免費: https://startssl.com/Certificates/ApplySSLCert
國內免費:SSL認證: 沃通免費SSL認證G2 (申請地址https://buy.wosign.com/ApplyForSSL.html選擇第一個免費SSL)

3.在nginx上配置並使用自已的認證crt

# server {     listen       443;     server_name  xxx.clcw.com.cn;     root         html;     ssl                  on;     ssl_certificate      /home/songaimin/job/nginx-conf/ssl/xxx.clcw.com.cn_bundle.crt;     ssl_certificate_key  /home/songaimin/job/nginx-conf/ssl/xxx.clcw.com.cn.key;     ssl_session_timeout  5m;     ssl_protocols  SSLv2 SSLv3 TLSv1;     ssl_ciphers  HIGH:!aNULL:!MD5;     ssl_prefer_server_ciphers   on;     location / {     } }

重啟nginx伺服器,查看443是否正常啟動。

訪問https://xxx.clcw.com.cn看地址欄,有綠色小鎖的標記。恭喜你成功了!!!!

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介紹了使用免費的startssl服務啟用https,包括了方面的內容,希望對PHP教程有興趣的朋友有所協助。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.