Thanks for your directions!
So, unless you use the cert with all 3 names in it somewhere other than Apache you could
sudo certbot delete --cert-name atractor.pt
This worked ok after confirmation...
After that you can test the automated renew with:
sudo certbot renew --dry-run
This --dry-run will not affect your Apache config or your existing production certs. It is just a test
This failed with the following message:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Processing /etc/letsencrypt/renewal/atractor.pt-0001.conf
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Error while running apachectl configtest.
[Tue Apr 08 12:33:10.896575 2025] [alias:warn] [pid 40053] AH00671: The Alias directive in /etc/httpd/conf.d/autoindex.conf at line 21 will probably never match because it overlaps an earlier Alias.
AH00526: Syntax error on line 8 of /etc/httpd/conf.d/vhosts-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/atractor.pt/cert.pem' does not exist or is empty
Failed to renew certificate atractor.pt-0001 with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\n[Tue Apr 08 12:33:10.896575 2025] [alias:warn] [pid 40053] AH00671: The Alias directive in /etc/httpd/conf.d/autoindex.conf at line 21 will probably never match because it overlaps an earlier Alias.\nAH00526: Syntax error on line 8 of /etc/httpd/conf.d/vhosts-le-ssl.conf:\nSSLCertificateFile: file '/etc/letsencrypt/live/atractor.pt/cert.pem' does not exist or is empty\n")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/rdvrsgcl.atractor.pt.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Error while running apachectl configtest.
[Tue Apr 08 12:33:11.202525 2025] [alias:warn] [pid 40057] AH00671: The Alias directive in /etc/httpd/conf.d/autoindex.conf at line 21 will probably never match because it overlaps an earlier Alias.
AH00526: Syntax error on line 8 of /etc/httpd/conf.d/vhosts-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/atractor.pt/cert.pem' does not exist or is empty
Failed to renew certificate rdvrsgcl.atractor.pt with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\n[Tue Apr 08 12:33:11.202525 2025] [alias:warn] [pid 40057] AH00671: The Alias directive in /etc/httpd/conf.d/autoindex.conf at line 21 will probably never match because it overlaps an earlier Alias.\nAH00526: Syntax error on line 8 of /etc/httpd/conf.d/vhosts-le-ssl.conf:\nSSLCertificateFile: file '/etc/letsencrypt/live/atractor.pt/cert.pem' does not exist or is empty\n")
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/atractor.pt-0001/fullchain.pem (failure)
/etc/letsencrypt/live/rdvrsgcl.atractor.pt/fullchain.pem (failure)
Line 8 of /etc/httpd/conf.d/vhosts-le-ssl.conf is:
SSLCertificateFile /etc/letsencrypt/live/atractor.pt/cert.pem
that seems to refer to the deleted certificate. In any case I tried to access
https://www.atractor.pt/ and there was no problem, maybe it would fail if
the server is rebooted...
As I am a bit lost on how to correct this file here is its contents after that line:
*Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/atractor.pt/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/atractor.pt/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/atractor.pt/chain.pem
<VirtualHost\ :443>
ServerName rdvrsgcl.atractor.pt
#Redirect permanent / https://www.fc.up.pt/
DocumentRoot /var/www/html/vn
RewriteEngine on
RewriteRule ^/.well-known/ - [L]
RewriteCond %{HTTP_HOST} ^rdvrsgcl*.atractor.pt$
RewriteRule ^/(.*)$ http://localhost:4723/$1 [proxy]
ProxyPassReverse / http://localhost:4723/
#ProxyPass / http://localhost:4723/
#ProxyPassReverse / http://localhost:4723/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/atractor.pt/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/atractor.pt/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/atractor.pt/chain.pem
</VirtualHost>
</IfModule>
Any help will be most appreciated!