Ottenere un certificato SSL con Certbot
Attivare HTTPS gratuitamente su Nginx con Let's Encrypt e autorenew.
Pronto per iniziare il tuo servizio? Controlla le offerte e ordina online.
Visualizza offerte e ordineObiettivo
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)
Installazione Certbot
apt install -y certbot python3-certbot-nginxOttenere il certificato
certbot --nginx -d exemple.fr -d www.exemple.fr- Email
Inserisci un indirizzo valido per gli avvisi di scadenza.
- Reindirizzamento HTTPS
Accettare il HTTP → HTTPS reindirizzamento automatico proposto da Certbot.
- 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.