: 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.