Enable HTTPS with the free STARTSSL service

Source: Internet
Author: User
Tags free ssl free ssl certificate nginx server ssl certificate startssl
Web site to enable HTTPS or use the free STARTSSL service

The key steps to using HTTPS in your site are:

1. Use the information from your company to generate your own CSR file and key file, one of the following methods.

First type: Online generation [https://www.trustasia.com/tools/csr-generator.htm]
The second type:
openssl req -new -nodes -keyout yourname.key -out yourname.csr
Linux command line generation
The third type: [Https://download.startpki.com/startcom/startcomtool.exe] Download and use this tool to generate

2. Use your own CSR and key files to register your own domain name on startssl.com and generate your own certificate CRT.

Foreign free: Https://startssl.com/Certificates/ApplySSLCert
Domestic Free: SSL Certificate: wosign free SSL Certificate G2 (Request address https://buy.wosign.com/ApplyForSSL.html Select first free SSL)

3. Configure and use your own certificate CRT on Nginx

# 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 / {     } }

Restart the Nginx server to see if 443 is starting properly.

Visit https://xxx.clcw.com.cn to see the address bar, with a small green lock mark. Congratulations on your success!!!!

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the use of the free STARTSSL service to enable HTTPS, including 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.