I have the same problem. Before opening a new thread, I better ask here.
In my case, I have my Laravel application deployed on an Ubuntu 22.04.3 LTS (GNU/Linux 6.2.0-1012-aws x86_64) EC2 server from AWS.
Before a system update, everything was fine. I had the certificate installed without problems, but it started to fail and I don't know why.
I have tried to renew the certificate but the message is the following:
sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No renewals were attempted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Trying to install the certificate again the message says the following:
sudo certbot certonly --apache -d textosprohibidos.shop --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Simulating a certificate request for textosprohibidos.shop
Certbot failed to authenticate some domains (authenticator: apache).
The Certificate Authority reported these problems:
Domain: textosprohibidos.shop
Type: connection
Detail: 3.141.1.184: Fetching http://textosprohibidos.shop/.well-known/acme-challenge/Dz1dec_qPUhBvMaKjZOgjeQByYUM8U2vEO4Klw8xtRw: Error getting validation data
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My exit sudo apachectl -t -D DUMP_VHOSTS
VirtualHost configuration:
*:80 texto-prohibido (/etc/apache2/sites-enabled/texto-prohibido.conf:1)
*:443 texto-prohibido (/etc/apache2/sites-enabled/texto-prohibido.conf:22)
Apache2 config:
<VirtualHost *:80>
ServerName texto-prohibido
ServerAlias www.texto-prohibido
ServerAdmin webmaster@localhost
DocumentRoot /var/www/texto-prohibido/public
<Directory /var/www/texto-prohibido/public>
Options +FollowSymlinks -Indexes
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName texto-prohibido
ServerAlias www.texto-prohibido
ServerAdmin webmaster@localhost
DocumentRoot /var/www/texto-prohibido/public
<Directory /var/www/texto-prohibido/public>
Options +FollowSymlinks -Indexes
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Does anyone have any idea why this is happening?