Pakete:

/etc/apache2/conf-available/acme.conf
ServerAdmin admin@example.lxht.de
MDCertificateAgreement https://letsencrypt.org/documents/LE-SA-v1.4-April-3-2024.pdf
MDomain example.lxht.de
/etc/apache2/sites-available/example.lxht.de.conf
<VirtualHost *:443>
  ServerName example.lxht.de
  SSLEngine on
  <Directory /srv/example.lxht.de/html/>
    Require all granted
  </Directory>  
</VirtualHost>
mkdir -p /srv/example.lxht.de/html/
a2enmod ssl
a2enmod md
a2enconf acme
a2ensite example.lxht.de
systemctl restart apache2.service
until [ -f /etc/apache2/md/staging/example.lxht.de/pubcert.pem ]; do sleep 1; echo -n .; done
systemctl restart apache2.service