To test the renewal process, you can do a dry run with certbot:

sudo certbot renew --dry-run
To test the renewal process, you can do a dry run with certbot:

sudo certbot renew --dry-run
You’ll need to press ENTER to accept. Then, update the package list to pick up the new repository’s package information.

sudo apt-get update
And finally, install Certbot’s Nginx package with apt-get.

sudo apt-get install python-certbot-nginx
Select your choice then hit ENTER. The configuration will be updated, and Nginx will reload to pick up the new settings. certbot will wrap up with a message telling you the process was successful and where your certificates are stored:

OutputIMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/example.com/fullchain.pem. Your cert will
   expire on 2017-10-23. To obtain a new or tweaked version of this
   certificate in the future, simply run certbot again with the
   "certonly" option. To non-interactively renew *all* of your
   certificates, run "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le
First, add the repository.

sudo add-apt-repository ppa:certbot/certbot
To check, open the server block file for your domain using nano or your favorite text editor.

sudo nano /etc/nginx/sites-available/example.com
If you get an error, reopen the server block file and check for any typos or missing characters. Once your configuration file’s syntax is correct, reload Nginx to load the new configuration.

sudo systemctl reload nginx
Certbot provides a variety of ways to obtain SSL certificates, through various plugins. The Nginx plugin will take care of reconfiguring Nginx and reloading the config whenever necessary:

sudo certbot --nginx -d example.com -d www.example.com
If that’s successful, certbot will ask how you’d like to configure your HTTPS settings.

OutputPlease choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
If it doesn’t, update it to match. Then save the file, quit your editor, and verify the syntax of your configuration edits.

sudo nginx -t

Recommend

How To Set Up Let's Encrypt with Nginx Server Blocks on Ubuntu 16.04 Step 4 — Obtaining an SSL Certificate

How To Set Up Let's Encrypt with Nginx Server Blocks on Ubuntu 16.04 Step 3 — Allowing HTTPS Through the Firewall

How To Set Up Let's Encrypt with Nginx Server Blocks on Ubuntu 16.04 Step 2 — Confirming Nginx’s Configuration

How To Set Up Let's Encrypt with Nginx Server Blocks on Ubuntu 16.04 Step 1 — Installing Certbot

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 8 — Suppression d’une tâche

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 7 — Affichage des tâches terminées

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 6 — Affichage des tâches en attente uniquement

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 5 — Fin d’une tâche

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 4 — Liste de toutes les tâches

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 3 — Création d’une tâche

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 2 — Création d’un programme CLI

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Étape 1 — Installation du pilote Go de MongoDB

Comment utiliser Go avec MongoDB en utilisant le pilote MongoDB Go Conditions préalables

Como instalar o Linux, o Nginx, o MySQL e a pilha PHP (LEMP) no CentOS 8 [Início rápido] Passo 4 — Testar o PHP com o Nginx

Como instalar o Linux, o Nginx, o MySQL e a pilha PHP (LEMP) no CentOS 8 [Início rápido] Passo 3 — Instalar o PHP-FPM

Como instalar o Linux, o Nginx, o MySQL e a pilha PHP (LEMP) no CentOS 8 [Início rápido] Passo 2 — Instalar o MariaDB

Como instalar o Linux, o Nginx, o MySQL e a pilha PHP (LEMP) no CentOS 8 [Início rápido] Passo 1 — Instalar o Nginx

Lidando com a função Panics em Go Detectando panics com o recover

Lidando com a função Panics em Go Lidando com os panics

Lidando com a função Panics em Go Funções adiadas

Lidando com a função Panics em Go Usando o função integrada panic

Lidando com a função Panics em Go Receptores nulos

Lidando com a função Panics em Go Anatomia de um panic

Lidando com a função Panics em Go Entendendo a função Panics Panics fora dos limites

How To Add a Styled Profile Image To Your Webpage With HTML