On debian 9 with apache 2.4
I've installed like this:
apt-get install python-certbot-apache -t stretch-backports
then run:
certbot --authenticator webroot --installer apache
Everything worked fine until I get this message:
An unexpected error occurred:
ValueError: Unable to set value to path!
Please see the logfiles in /var/log/letsencrypt for more details.
If I see the log there's this part:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/client.py", line 489, in deploy_certificate
fullchain_path=fullchain_path)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 304, in deploy_cert
vhosts = self.choose_vhosts(domain)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 328, in choose_vhosts
return [self.choose_vhost(domain, create_if_no_ssl)]
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 512, in choose_vhost
self._add_servername_alias(target_name, vhost)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 1421, in _add_servername_alias
self.parser.add_dir(vh_path, "ServerAlias", target_name)
File "/usr/lib/python3/dist-packages/certbot_apache/parser.py", line 328, in add_dir
self.aug.set(aug_conf_path + "/directive[last() + 1]", directive)
File "/usr/lib/python3/dist-packages/augeas.py", line 187, in set
raise ValueError("Unable to set value to path!")
ValueError: Unable to set value to path!