Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn’t know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run “certbot-auto certonly” to do so. You’ll need to manually configure your web server to use the resulting certificate.
In the letsencrypt.log file it says:
self._initialized.prepare()
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 189, in prepare
self.version)
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/parser.py”, line 46, in init
self.loc = {“root”: self._find_config_root()}
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/parser.py”, line 619, in _find_config_root
raise errors.NoInstallationError(“Could not find configuration root”)
Hi @pabl_guti, do you have an Apache web server installed on your system? What version of Apache, and how did you originally install Apache? Are there Apache configuration files inside of /etc/apache2 there?
I do! The version of Apache available in CentOS 6’s official repositories is 2.2.15 and its configuration directory is /etc/httpd. What’s going on here is Cerbot is recognizing your Linux distro and expecting things to be set up according to the normal conventions of that distro. Since these conventions aren’t being followed here, Certbot gets confused, says it can’t find your Apache installation, and exits.
You can work around the problem with command line arguments to Certbot. A full list of relevant flags can be shown by running ./certbot-auto --help apache. At the very least, you’ll need to include --apache-server-root /etc/apache2 on the command line.
Also, if you don’t mind me asking, what VPS provider are you using? You said Apache has been installed from the beginning and I’m curious which VPS provider is setting things up this way.