I am trying to finish deployment of new FreePBX 16 and I’m stuck on Certificate manager. There were already so many topics on this but issues were random.
After a bit of digging:
[root@pbx16 integration]# fwconsole certificates --generate --hostname=mydomain.com [email protected] --type=le --country-code=pl --state=Mazovian
Processing: mydomain.com, Local IP: <private_ip>, Public IP: <public_ip>
Self test: trying http://mydomain.com/.freepbx-known/8f6f9a1407d39acb30ce8eae50b377c5
Self test: received 8f6f9a1407d39acb30ce8eae50b377c5
lechecker: Pest_Curl_Exec - Operation timed out after 30001 milliseconds with 0 out of -1 bytes received
Getting list of URLs for API
Requesting new nonce for client communication
Account already registered. Continuing.
Sending registration to letsencrypt server
Sending signed request to https://acme-v02.api.letsencrypt.org/acme/new-acct
Account: https://acme-v02.api.letsencrypt.org/acme/acct/1550441067
Starting certificate generation process for domains
Requesting challenge for mydomain.com
Sending signed request to https://acme-v02.api.letsencrypt.org/acme/new-order
Sending signed request to https://acme-v02.api.letsencrypt.org/acme/authz-v3/310880213677
Got challenge token for mydomain.com
Token for mydomain.com saved at /var/www/html/.well-known/acme-challenge/L-L4UOi5KR5dde77aMUvFEZFld2Cx_SnXapleKIDHZY and should be available at http://mydomain.com/.well-known/acme-challenge/L-L4UOi5KR5dde77aMUvFEZFld2Cx_SnXapleKIDHZY
** lechecker: Pest_Curl_Exec - Operation timed out after 30001 milliseconds with 0 out of -1 bytes received
LetsEncrypt Update Failure:
Please check http://mydomain.com/.well-known/acme-challenge/L-L4UOi5KR5dde77aMUvFEZFld2Cx_SnXapleKIDHZY - token not available
The token is placed in a said location:
[root@pbx16 integration]# ls -la /var/www/html/.well-known/acme-challenge/
total 4
drwxrwxr-x 2 asterisk asterisk 57 Feb 2 21:01 .
drwxrwxr-x 3 asterisk asterisk 28 Feb 2 19:14 ..
-rw-r--r-- 1 root root 87 Feb 2 21:01 L-L4UOi5KR5dde77aMUvFEZFld2Cx_SnXapleKIDHZY
[root@pbx16 integration]# ls -la /var/www/html/.well-known/acme-challenge/
total 4
drwxrwxr-x 2 asterisk asterisk 57 Feb 2 21:01 .
drwxrwxr-x 3 asterisk asterisk 28 Feb 2 19:14 ..
-rw-r--r-- 1 root root 87 Feb 2 21:01 L-L4UOi5KR5dde77aMUvFEZFld2Cx_SnXapleKIDHZY
[root@pbx16 integration]# ls -la /var/www/html/.well-known/acme-challenge/
total 0
drwxrwxr-x 2 asterisk asterisk 6 Feb 2 21:01 .
drwxrwxr-x 3 asterisk asterisk 28 Feb 2 19:14 ..
[root@pbx16 integration]# ls -la /var/www/html/.well-known/acme-challenge/
But is removed when error happens.
After checking the traffic on the my machine’s network interface, I can see that the HTTP request from the my machine is sent to: 104.22.48.127 (mirror1.freepbx.org @ cloudflare):
[GET /lechecker.php?host=mydomain.com&path=%2F.freepbx-known%2Fc08c1f9cee1b721ff1743493560ca9e0&token=c08c1f9cee1b721ff1743493560ca9e0&type=http HTTP/1.1\r\n]
Then the 167.99.224.159 is trying to acquire this token:
[GET /.freepbx-known/c08c1f9cee1b721ff1743493560ca9e0 HTTP/1.1\r\n]
but even if the path exists (the random name is temporarily created), it apparently is not accessible since my machine just does not answer to repeated retransmissions.
Certman version is:
| certman | 16.0.22 | Enabled | AGPLv3+ | Sangoma |
Is it a bug or there’s something that can be done in order to verify it further?