When I try to add a new SSL certificate or renew the existing one, I receive the following error:
"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."
I had installed it without any issues three months ago. I tried solutions from similar topics, reinstalled Certbot and Apache (along with all settings), but I couldn't resolve the issue.
There is only one site running on the server. What could be the problem?
Thanks in advance.
Note: If I manually add a file to the .well-known/acme-challenge/
folder, I can access it via HTTP.
This is the VirtualHost setting:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName bote1.hacettepe.edu.tr
ServerAlias bote1.hacettepe.edu.tr
DocumentRoot /var/www/html
DirectoryIndex index.html index.php
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
My domain is: bote1.hacettepe.edu.tr
I ran this command: sudo certbot --apache
It produced this output: 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.
My web server is (include version): Apache/2.4.58 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 24.04
My hosting provider, if applicable, is: -
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): na
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 3.0.1