Skip to content

Tinone 71

Stralci dal web

  • HOME
  • About me..
  • News
  • CIAO MAX
  • GALLERIE
    • Comics 2022
    • Fuochi Sant’ Eusebio 2022
    • Fulmini luglio 2021
    • Lago Antrona
    • Ferrara
    • Saline di Comacchio
    • Lido di Pomposa
    • Foto Varie
    • Pietra Ligure 2019
    • Schiranna 2019
    • Laveno Dicembre 2019
    • Incendio Ghirla
    • Forte di Bard Aosta
    • Costa Fascinosa 2023
  • MOTO
    • YAMAHA R1 1999
    • HONDA VTR 1000
    • CBR 600F
    • MUGELLO 2008
  • Privacy Policy
  • Assistenza Remota HopTodesk
  • Home
  • Generate SSL Certificates With LetsEncrypt on Debian Linux
  • Informatica
  • Linux

Generate SSL Certificates With LetsEncrypt on Debian Linux

Admin 3 Febbraio 2019 2 min read
thanks to linuxconf.org for article.

Introduction
In case you haven't realized already, encryption is important. For the web, that means using SSL certificates to secure web traffic. Recently, Mozilla and Google have gone as far as to mark sites without SSL certificates as insecure in Firefox and Chrome. 



In order to bring the Web up to speed with encryption, the Linux Foundation along with the Electronic Frontier Foundation and many others created LetsEncrypt. LetsEncrypt is a project designed to allow users access to free SSL certificates for their websites. To date, LetsEncrypt has issued millions of certificates and is a resounding success. 

Making use of LetsEncrypt is easy on Debian, especially when using the Certbot utility from the EFF.Operating System
OS: Debian Linux
Version: 9 (Stretch)
Installing for Apache
Certbot has a specialized installer for the Apache server. Debian has this installer available in its repositories.# apt install python-certbot-apache
The package provides the certbot command. The Apache plugin interfaces with the Apache server to discover information about your configurations and the domains that it is generating certificates for. As a result, generating your certificates requires only a short command.# certbot --apache
Certbot will generate your certificates and configure Apache to use them.

 

Auto-Renew with Cron
Whether you're using Apache or Nginx, you will need to renew your certificates. Remembering to do so can be a pain, and you definitely don't want them to lapse. The best way to handle renewing your certificates is to create a cron job that runs twice a day. Twice daily renewals are recommended because they guard against certificates lapsing due to revocation, which can happen from time to time. To be clear, though, they don't actually renew each time. The utility check if the certs are out of date or will be within thirty days. It will only renew them if they meet the criteria. 

First, create a simple script that runs Certbot's renewal utility. It's probably a good idea to put it in your user's home directory or a scripts directory so it doesn't get served.#! /bin/bash certbot renew -q
Don't forget to make the script executable too.$ chmod +x renew-certs.sh
Now, you can add the script as a cron job. Open up your crontab and add the script.# crontab -e
* 3,15 * * * /home/user/renew-certs.sh
Once you exit, the script should run every day at 3 a.m. and 3 p.m. by the server's clock.Closing Thoughts
Encrypting your web server protects both your guests as well as yourself. Encryption will also continue to play a role in which sites are displayed in browsers, and it's not much of a stretch to assume that it will also play a role in SEO. Any way you look at it, encrypting your web server is a good idea, and LetsEncrypt is the easiest way to do it.
Tags: letsencrypt nextcloud

Continue Reading

Previous: Activate LDAP user and group backend for Nextcloud
Next: Come utilizzare IP pubblici aggiuntivi (tratto da Pfsenseitaly.com)

Related Stories

Come personalizzare menu tasto destro Windows 11 con l’editor di Registro
1 min read
  • Informatica
  • Windows

Come personalizzare menu tasto destro Windows 11 con l’editor di Registro

12 Dicembre 2023
MacOS – Running Scripts at Login
1 min read
  • APPLE
  • Informatica

MacOS – Running Scripts at Login

3 Ottobre 2023
Remapping Apple Keyboard
1 min read
  • APPLE
  • Informatica

Remapping Apple Keyboard

3 Ottobre 2023
Copyright © All rights reserved. | DarkNews by AF themes.
Cookies
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Sempre abilitato
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
ACCETTA E SALVA