SSL Install Error

mcs3ss2

Active Member
Sep 8, 2020
311
37
28
AU
Code:
Command failed: dehydrated -c. ERROR: Challenge is invalid! (returned: invalid) (result: ["type"]       "http-01"
["url"] "https://acme-v02.api.letsencrypt.org/acme/chall/3503548816/733714411146/Bt0iPQ"
["status"]      "invalid"
["validated"]   "2026-07-05T08:25:44Z"
["error","type"]        "urn:ietf:params:acme:error:unauthorized"
["error","detail"]      "192.18.1.57: Invalid response from http://pbx.mylab.au/.well-known/acme-challenge/qTr256prEeDGHxX4L_F5T86ZA_s_w1yKabCbFDUhiwE: 403"
["error","status"]      403
["error"]       {"type":"urn:ietf:params:acme:error:unauthorized","detail":"192.18.1.57: Invalid response from http://pbx.mylab.au/.well-known/acme-challenge/qTr256prEeDGHxX4L_F5T86ZA_s_w1yKabCbFDUhiwE: 403","status":403}
["token"]       "qTr256prEeDGHxX4L_F5T86ZA_s_w1yKabCbFDUhiwE"
["validationRecord",0,"url"]    "http://pbx.mylab.au/.well-known/acme-challenge/qTr256prEeDGHxX4L_F5T86ZA_s_w1yKabCbFDUhiwE"
["validationRecord",0,"hostname"]       "pbx.mylab.au"
["validationRecord",0,"port"]   "80"
["validationRecord",0,"addressesResolved",0]    "192.18.1.57"
["validationRecord",0,"addressesResolved"]      ["192.18.1.57"]
["validationRecord",0,"addressUsed"]    "192.18.1.57"
["validationRecord",0]  {"url":"http://pbx.mylab.au/.well-known/acme-challenge/qTr256prEeDGHxX4L_F5T86ZA_s_w1yKabCbFDUhiwE","hostname":"pbx.mylab.au","port":"80","addressesResolved":["192.18.1.57"],"addressUsed":"192.18.1.57"}
["validationRecord"]    [{"url":"http://pbx.mylab.au/.well-known/acme-challenge/qTr256prEeDGHxX4L_F5T86ZA_s_w1yKabCbFDUhiwE","hostname":"pbx.mylab.au","port":"80","addressesResolved":["192.18.1.57"],"addressUsed":"192.18.1.57"}])

As per documentation - SSL Installation is not working.
Fresh Debian 13 Install
Latest script to install FSPBX 1.9.3
SSL Install Error. Fresh Install. SIngle Domain. Default Domain is disabled. hostname is resolving to IP.

I can login to NON SSL Page

Can someone help
 
How are you producing this error? Are you running this command?
Code:
php artisan app:install-lets-encrypt-certificate

Make sure your nginx config has this, and nothing else overrides this block
Code:
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;

    location ^~ /.well-known/acme-challenge/ {
        default_type "text/plain";
        root /var/www/fspbx/public;
        try_files $uri =404;
    }

    location / {
        return 301 https://$host$request_uri;
    }
}

Ensure that Let's Encrypt servers can reach your server. Recently, someone reported a similar problem, which was caused by their geographical blocking.
 
Last edited:
  • Like
Reactions: yaboc
What country or specific domain or specific IP should I allow for LetsEncrypt to work with installed dehydrated.
@pbxgeek
My network engineer confirmed he has geo block for the rest of the world except au and this is probably what is causing the dehydrated ssl install fail using lets encrypt.
 
That's definitely why you're experiencing problems. You should review their documentation to find out more. They might try accessing it from different locations.