Free ssl certificate application a year and deployed on nginx

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 Insert Picture Description

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 Insert Picture Description
Here I chose a key application
Here Insert Picture Description
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
Here Insert Picture Description
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

Here Insert Picture Description

Enter the relevant reports, and more fill the actual situation.

You can then use with small green lock https site visit
Here Insert Picture Description

View certificate, the expiration time is March 1, 2021

Here Insert Picture Description

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
Here Insert Picture Description
ok, perfect

End of this article

Published 10 original articles · won praise 14 · views 3714

Guess you like

Origin blog.csdn.net/yuaneuro/article/details/104621381