Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Deshola's avatar

Error When Installing Let'sEncrypt on Forge!

Hello Devs,

I am trying to install SSL certificate for my domain. I believe The DNS is well set-up as I can already point to it without and interact the web app. I want to install Let'sEncrypt using Forge and I seem to receive the error message below each time I make an attempt:

Creating well known challenge directory...
Installing LetsEncrypt client...
Cloning into 'letsencrypt1512123943'...
Configuring client...
Restarting Nginx...
Generating Certificate...
# INFO: Using main config file /root/letsencrypt1512123943/config
+ Generating account key...
+ Registering account key with ACME server...
+ Done!
# INFO: Using main config file /root/letsencrypt1512123943/config
Processing example.com with alternative names: www.example.com
 + Signing domains...
 + Creating new directory /root/letsencrypt1512123943/certs/example.com ...
 + Creating chain cache directory /root/letsencrypt1512123943/chains
 + Generating private key...
 + Generating signing request...
 + Requesting challenge for example.com...
 + Requesting challenge for www.example.com...
 + Responding to challenge for example.com...
ERROR: Challenge is invalid! (returned: invalid) (result: {
  "type": "http-01",
  "status": "invalid",
  "error": {
    "type": "urn:acme:error:connection",
    "detail": "Fetching http://example.com/.well-known/acme-challenge/DP-X2o8KGTnUDNgycWnouVDO3JhV7prBIBjQB-696KU: Timeout",
    "status": 400
  },
  "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/rEdBDDjTfyhRnUl7jiU6NDeIKWEPWANBU2yk313BYcs/2613126403",
  "token": "DP-X2o8KGTnUDNgycWnouVDO3JhV7prBIBjQB-696KU",
  "keyAuthorization": "DP-X2o8KGTnUDNgycWnouVDO3JhV7prBIBjQB-696KU.pDV6oTqyr2UKORyABNlWDWGzSK9gEcSG2S7elZInOWQ",
  "validationRecord": [
    {
      "url": "http://example.com/.well-known/acme-challenge/DP-X2o8KGTnUDNgycWnouVDO3JhV7prBIBjQB-696KU",
      "hostname": "example.com",
      "port": "80",
      "addressesResolved": [
        "46.101.56.116",
        "2a03:b0c0:1:d0::30ec:a001"
      ],
      "addressUsed": "2a03:b0c0:1:d0::30ec:a001",
      "addressesTried": []
    }
  ]
})
0 likes
5 replies
ejdelmonico's avatar

Looks like you DNS is incorrect. Obviously, you didn't use example.com because you can not have access to that domain. The real data is not a security risk. If they get inside your server to look for the cert number then it is irrelevant at that point.

dbhc's avatar

I have the exact same error. I can navigate to my site just fine but am getting a timeout error for the letsencrypt deployment.

I have Vue-Router setup. Would that have anything to do with this?

ejdelmonico's avatar

No, your website code should be fine. Verification failure could happen for many reasons with the most likely culprit being a mistake in the DNS. There are several tools available for free to check your DNS. Pingdom

Also, your website has to be available under all the domains that the cert is using like example.com and www.example.com.

Deshola's avatar

Thank you @ejdelmonico. Sorry for the late reply. I managed to solve this challenge way long by updating some fields on DigitalOcean account; precisely, DNS settings.

Please or to participate in this conversation.