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.