Now more and more https site, HTTPS site will be included Baidu priority .
Today to share free ssl certificate free application a year, and can be renewed for free, the theory can be permanently free of charge
Ssl certificate application
First, open the website
FreeSSL offers a free HTTPS certificate application site
Here we enter the domain name to request a certificate, one can apply for two URLs
to select the first Shuang domain (validity: 1 year) and then create a free ssl certificate
Here I chose a key application
has just completed the preparatory work of junior partner should prompt as shown below, click to open KeyManager, just installed the software will pop up.
Then follow the prompts to download the client, the more tips on good application
after the certificate we need to lead out save, next time will be used to deploy
Then upload to your vps in
very simple!
Ssl certificate deployment
My server built with lnmp
A key installation script comes lnmp
wget http://soft.vpser.net/lnmp/lnmp1.6.tar.gz -cO lnmp1.6.tar.gz && tar zxf lnmp1.6.tar.gz && cd lnmp1.6 && ./install.sh lnmp
Installation time to see server performance, because it is compiled and installed, I installed about an hour.
After you install the DNS good input
lnmp ssl add
Enter the relevant reports, and more fill the actual situation.
You can then use with small green lock https site visit
View certificate, the expiration time is March 1, 2021
So far, ssl certificate application and the deployment is complete
Set 301 to force a jump http to https
If you are lnmp built, open /usr/local/nginx/conf/nginx.config
Add this
if ($server_port !~ 443){
rewrite ^(.*)$ https://$host$1 permanent;
}
Detection look
ok, perfect