Как установить Certbot SSL в Linux-системе ec2 (веб-сервер Apache)? [Решаемые] - PullRequest
0 голосов
/ 17 октября 2019

У меня возникла эта проблема, когда я пытался установить Certbot на Linux-инстанс ec2 (Apache Web Server). Я уже установил PuTTY (для доступа к экземпляру) и WinSCP (для передачи файла). Но когда я запускаю какую-то команду, обращайтесь к руководству AWS, оно показывает ошибку, как показано ниже:

Exiting abnormally:
Traceback (most recent call last):

File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 11, in <module>
      sys.exit(main())

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 1378, in main
      return config.func(config, plugins)

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site- 
      packages/certbot/main.py", line 1133, in run certname, lineage)

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site- 
      packages/certbot/main.py", line 121, 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 405, in obtain_and_enroll_certificate
      cert, chain, key, _ = self.obtain_certificate(domains)

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 348, in obtain_certificate
      orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 384, in _get_order_and_authorizations
      authzr = self.auth_handler.handle_authorizations(orderr, best_effort)

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/auth_handler.py", line 69, in handle_authorizations
      resps = self.auth.perform(achalls)

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/configurator.py", line 2304, 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 76, in perform
      self._mod_config()

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/http_01.py", line 111, 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 166, 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.

1 Ответ

1 голос
/ 17 октября 2019

Я думаю, что самая важная строка вывода ошибки - последняя. Он говорит вам, что certbot не может найти vhost, прослушивающего порт 80. Я предполагаю, что вы используете Apache Webserver. Убедитесь, что вы правильно настроили свой сервер.

Возможно, также опубликуйте конфигурацию apache, чтобы получить дополнительную помощь, если это необходимо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...