Enable https using the free startssl service

Source: Internet
Author: User
Tags free ssl free ssl certificate startssl
: This article describes how to use the free startssl service to enable https. For more information about PHP tutorials, see. Enable https for the website or use the free startssl service

The steps for using https in a website are as follows:

1. use your own company information to generate your own CSR file and key file. the method is as follows.

First, generate [https://www.trustasia.com/tools/csr-generator.htm] online.
Second:
openssl req -new -nodes -keyout yourname.key -out yourname.csr
Linux command line generation
Third: [https://download.startpki.com/startcom/startcomtool.exe] download and use this tool to generate

2. use your own csr and key file to register your own domain name on startssl.com and generate your own certificate crt.

Free abroad: https://startssl.com/Certificates/ApplySSLCert
Free in China: SSL Certificate: waotong Free SSL certificate G2 (application address: https://buy.wosign.com/applyforssl.htmlselect the first free SSL Certificate)

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 and check whether 443 is started properly.

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

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above describes how to use the free startssl service to enable https, including some content, and hope to help friends who are interested in PHP tutorials.

    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.