Назад | Перейти на главную страницу

Выдача SSL-сертификата с DDNS без IP и сервером apache2 и Let'sEncrypt Certbot: противоречивые данные и не работает

Название довольно поясняет инструменты, которые я использую, но я постараюсь уточнить детали:

Для Stretch использование Certbot находится здесь: https://certbot.eff.org/lets-encrypt/debianstretch-apache

По ссылке запускаю:

sudo certbot --authenticator webroot --installer apache

и продолжаю настройку до этапа проверки, после чего я получаю следующее:

Waiting for verification...
Cleaning up challenges
Failed authorization procedure. <DDNS-name> (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://<DDNS-name>/.well-known/acme-challenge/yDloDClARe-ZW1KxiqAUSCE4ZUoNCOzpmDFvcrdx9WE: Timeout

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: <DDNS-name>
   Type:   connection
   Detail: Fetching
   http://<DDNS-name>/.well-known/acme-challenge/yDloDClARe-ZW1KxiqAUSCE4ZUoNCOzpmDFvcrdx9WE:
   Timeout

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.

Я бы не ожидал каких-либо проблем с брандмауэром или именами, если у меня есть доступ к серверу публично.

Я нашел несколько интересных результатов по своей проблеме:

Буду признателен за любую / всю помощь по этому поводу, спасибо!

РЕДАКТИРОВАТЬ: после изменения DocumentRoot с /var/www/<DDNS-name> к /var/www/<DDNS-name>/, Я получаю следующее:

Waiting for verification...
Cleaning up challenges
Failed authorization procedure. <DDNS-name> (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://<DDNS-name>/.well-known/acme-challenge/pdyt7okkiqgYR2YemcBfFBXf78D4cGUw6eP41BgZtsQ: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: <DDNS-name>
   Type:   unauthorized
   Detail: Invalid response from
   http://<DDNS-name>/.well-known/acme-challenge/pdyt7okkiqgYR2YemcBfFBXf78D4cGUw6eP41BgZtsQ:
   "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>404 Not Found</title>
   </head><body>
   <h1>Not Found</h1>
   <p"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A record(s) for that domain
   contain(s) the right IP address.

РЕДАКТИРОВАТЬ 2 (файловая структура):

pi@butters-pi:/var/www $ ls
<DDNS-name>
pi@butters-pi:/var/www $ cd <DDNS-name>/
pi@butters-pi:/var/www/<DDNS-name> $ ls
alexa.php  CHANGELOG.md  config.php  LICENSE  mintLib.php  public_html  README.md
pi@butters-pi:/var/www/<DDNS-name> $ cd public_html/
pi@butters-pi:/var/www/<DDNS-name>/public_html $ ls
index.html

См. Комментарии: Параметр DocumentRoot был установлен неправильно