We have been successfully installing Let’s Encrypt certificates to several servers during the last year, but since a month ago we got errors and can not install it on any other server. We work with AWS.
My domain is: ***.com
I ran this command: sudo /opt/letsencrypt/letsencrypt-auto --debug
It produced this output:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ****.com
Cleaning up challenges
Exiting abnormally:
Traceback (most recent call last):
_ File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 11, in _
_ sys.exit(main())_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py”, line 1240, in main_
_ return config.func(config, plugins)_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py”, line 994, in run_
_ certname, lineage)_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py”, line 118, in get_and_save_cert
_ lineage = le_client.obtain_and_enroll_certificate(domains, certname)_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py”, line 357, in obtain_and_enroll_certificate_
_ certr, chain, key, _ = self.obtain_certificate(domains)_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py”, line 318, in obtain_certificate_
_ self.config.allow_subset_of_names)_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 74, in get_authorizations_
_ resp = self.solve_challenges()
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 115, in solve_challenges
_ resp = self.auth.perform(self.achalls)_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 1950, in perform_
_ http_response = http_doer.perform()_
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/http_01.py”, line 70, in perform_
_ self.mod_config()
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/http_01.py”, line 97, in mod_config
_ for vh in self.relevant_vhosts():
_ File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/http_01.py”, line 134, in relevant_vhosts
_ " {0}.".format(http01_port))_
PluginError: Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
Please see the logfiles in /var/log/letsencrypt for more details.
My web server is (include version): Apache/2.2.34 (Amazon)
The operating system my web server runs on is (include version):Amazon Linux AMI release 2017.09
My hosting provider, if applicable, is: Amazon Web Services
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): No