LetsEncrypt installation on your Linux web server

LetsEncrypt is one certificate authority which has an automatic client for adding free SSL. This in short means that you can secure your websites completely free of charge very easily with one command. So from https://iguru.gr you can use https://iguru.gr completely free and easy.

Below we will see how you can add LetsEncrypt to a Linux distribution running as . Although all large web panels (cPanel or Plesk) have a small application of LetsEncrypt, you may need the following method because the panels mentioned above cost more.

LetsEncrypt

Let's start:
We will need git installed on our Linux distro which th.

Ubuntu, Debian

sudo apt-get update sudo apt-get install git-all

, CentOS

sudo yum update sudo yum install git-all

Installation

Now that we have the git in our system we will clone the LetsEncrypt repo.

mkdir ~ / src cd ~ / src git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt sudo chmod g + x letsencrypt-auto ./letsencrypt-auto

Give some time for the update, and the installation of the dependencies that are needed.

Let's use LetsEncrypt

After installing Let's Encrypt we can issue certificates in snap.

For Apache2

Stop the apache2 service.

Then run LetsEncrypt:

./letsencrypt-auto --apache --email=name@to-email.you -d your domain.d

The command will tell LetsEncrypt that you are using Apache, giving your email, and the domains where you need certificates. You can use any domain you want after the -d flag and the LetsEncrypt application will start the process automatically.

For Nginx

LetsEncrypt and Nginx work fine in 2020. Before any years have been working experimentally, but right now there doesn't seem to be any problem.

./letsencrypt-auto certonly --email=name@your-email. -d your.domain -d SUB.your.domain

The command will generate a certificate in your /etc/letsencrypt/live/domain.directory.

To tell nginx that your site now uses SSL, you need to edit the Nginx site config file. For example:

sudo nano / etc / nginx / sites-enabled / default

In the config file, make sure that the server has access to port 443 and that the correct path for SSL certifications is specified. Your config should look like this:

server {listen 443; server_name to your domain SUB to your domain? root / usr / share / nginx / www; index index.html index.htm; ssl on; ssl_certificate /etc/letsencrypt/live/τοdomain.σας/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/τοdomain.σας/privkey.pem; }

After saving the nano do a restart on Nginx, and you are ready.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).