sudo certbot certonly --agree-tos --email MAIL --webroot -w /var/lib/letsencrypt/ -d DOMAIN
Neuen Virtual Host erstellen:
ServerName projekte.schappert-it.de
Redirect permanent / https://projekte.schappert-it.de/
ServerName projekte.schappert-it.de
Protocols h2 http:/1.1
DocumentRoot /var/www/projekte
ErrorLog ${APACHE_LOG_DIR}/projekte.schappert-it.de-error.log
CustomLog ${APACHE_LOG_DIR}/projekte.schappert-it.de-access.log combined
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/projekte.schappert-it.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/projekte.schappert-it.de/privkey.pem
# Other Apache Configuration
Key erstellen: ssh-keygen -t rsa -b 4096 -C "meine_adresse@example.com"
Am besten den Key im Pfad "~/.ssh" speichern.
ssh-agent Starten eval "$(ssh-agent -s)"
Key hinzufügen: ssh-add ~/.ssh/KEY_NAME
Key auf Server kopieren in die Datei ~/.ssh/authorized_keys