Dokumentationen/VPS und Serverbetrieb/HTTPS mit Lets Encrypt und Certbot
VPS und Serverbetrieb

HTTPS mit Lets Encrypt und Certbot

Kostenloses TLS Zertifikat für einen Nginx Webserver einrichten.

Ca. 9 MinutenZuletzt aktualisiert: 14.11.2026
1

Voraussetzungen

  • Domain zeigt per A Record auf die richtige VPS IP.
  • Port 80 und 443 sind erreichbar.
  • Nginx liefert die Domain bereits per HTTP aus.
2

Debian und Ubuntu

Zertifikat anfordern
apt update
apt install -y certbot python3-certbot-nginx
certbot --nginx -d example.com -d www.example.com
3

AlmaLinux

Zertifikat anfordern
dnf install -y epel-release
dnf install -y certbot python3-certbot-nginx
certbot --nginx -d example.com
4

Automatische Erneuerung prüfen

Renewal testen
certbot renew --dry-run
systemctl list-timers | grep -i certbot
Ein Zertifikat behebt keine falsche DNS Konfiguration. Prüfe bei Validierungsfehlern zuerst A oder AAAA Records, Ports und den tatsächlich erreichbaren Webserver.