Intermedio 12 minuti

Ottenere un certificato SSL con Certbot

Attivare HTTPS gratuitamente su Nginx con Let's Encrypt e autorenew.

#SSL#Certbot#HTTPS

Pronto per iniziare il tuo servizio? Controlla le offerte e ordina online.

Visualizza offerte e ordine

Obiettivo

Ottenere un certificato TLS gratuito Let's Encrypt e servire il vostro sito in HTTPS con Nginx sul VPS Anthony IT Solutions.

Prerequisito

  • Nginx installato con un vhost per il tuo dominio (vedere deploy Nginx)
  • DNS Una registrazione che punta all'IP del VPS
  • Porte aperte 80 e 443 (UFW)
Certbot e Nginx
Certbot modifica automaticamente la configurazione Nginx

Installazione Certbot

apt install -y certbot python3-certbot-nginx

Ottenere il certificato

certbot --nginx -d exemple.fr -d www.exemple.fr
  1. Email

    Inserisci un indirizzo valido per gli avvisi di scadenza.

  2. Reindirizzamento HTTPS

    Accettare il HTTP → HTTPS reindirizzamento automatico proposto da Certbot.

  3. Test di rinnovo

    certbot renew --dry-run, il timer sistemato deve avere successo.

DNS Se Certbot fallisce, verificare che il dominio punti bene al VPS e alla porta 80 sia accessibile da Internet.

Guide correlate