Hey,
you’re kind of in a catch-22 situation: the web server needs the certificate to be present in order to be able to start, but in order to re-create the certificate the web server must be running.
So what I’d try first instead of reinstalling is getting the web server up and running and updating the certificates:
- Edit
/etc/apache2/sites-available/univention-letsencrypt.conf
and comment-out allVirtualHost
entries completely. - Try starting Apache:
systemctl restart apache2
followed bysystemctl status apache2
- If it’s running, try updating the certificates:
/usr/share/univention-letsencrypt/refresh-cert-cron
(post the output if this doesn’t work or doesn’t create the certificates) - Re-create the configuration file modified in step 1:
ucr commit /etc/apache2/sites-available/univention-letsencrypt.conf
- Restart Apache once more like in step 2
If all of those steps succeed, your setup should be OK again.
m.