Hi,
I have a domain, "philaupatte.fr" for which I try to get certificate for SSL.
Unfortunately, command certbot certonly --apache fails (idem without certonly)
I try Let'Debug, and it says all is OK.
I have deactivated all SSL for time being ; I can access at my home page (Php Info)
I try curl -vvv http://www.philaupatte.fr, seems to work
Error from certbot (maybe too many attempts, don't know what to do )
Result from command
root@freeVM:/etc/apache2/conf-enabled# certbot certonly --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Requesting a certificate for philaupatte.fr
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: philaupatte.fr
Type: unauthorized
Detail: 213.186.33.5: Invalid response from Philaupatte Web Server "\n \n \n Philaupatte Web Server\n "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.
Here under Apache2 configuration (Apache2 is running fine without errors)
apache2.conf
ServerName philaupatte.fr
DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
LogLevel debug
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Include /etc/phpmyadmin/apache.conf
ports.conf
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster.administrator@free.fr
ServerName philaupatte.fr
DocumentRoot /var/www
ErrorLog /var/log/apache2/vHosts80/error.log
CustomLog /var/log/apache2/vHosts80/access.log combined
LogLevel debug
</VirtualHost>
Alias /cpanel /var/www/$cpanel (Don't missunderstand, this is not cpanel)
<Directory /var/www/$cpanel>
Options FollowSymLinks Includes
AllowOverride None
DirectoryIndex index.html index.php
</Directory>
Alias /cda31T /var/www/cda31T>
<Directory /var/www/cda31T>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Alias /cda31N /var/www/cda31N
<Directory /var/www/cda31T>
Options FollowSymLinks Includes
AllowOverride All
Allow from All
DirectoryIndex index.html index.php
</Directory>
default-ssl.conf (Engine has been disable)
<VirtualHost *:443>
ServerAdmin webmaster.administrator@free.fr
ServerName philaupatte.fr
DocumentRoot /var/www
ErrorLog /var/log/apache2/vHosts443/error.log
CustomLog /var/log/apache2/vHosts443/access.log combined
LogLevel debug
</VirtualHost>
Here under certbot command with -vvv verbose
certbot verbose.txt (9.5 KB)
Here under letsencrypt.log
letsencryptLog.txt (32.6 KB)
Many many thanks.