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

abangani's avatar

SSL Installation error on Forge / Nginx not running

I am trying to install the SSL certificate on Forge, but I get this error. Any idea what we should do?

--2020-07-24 11:13:53-- https://forge-certificates.laravel.com/le/859467/1098102?env=production Resolving forge-certificates.laravel.com (forge-certificates.laravel.com)... 104.26.12.100, 172.67.71.125, 104.26.13.100, ... Connecting to forge-certificates.laravel.com (forge-certificates.laravel.com)|104.26.12.100|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘letsencrypt_script1595589233’

 0K ...                                                    21.0M=0s

2020-07-24 11:13:53 (21.0 MB/s) - ‘letsencrypt_script1595589233’ saved [3166]

Cloning into 'letsencrypt1595589233'... Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. nginx.service is not active, cannot reload. Can't load /root/.rnd into RNG 140362165474368:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:98:Filename=/root/.rnd ERROR: Challenge is invalid! (returned: invalid) (result: { "type": "http-01", "status": "invalid", "error": { "type": "urn:ietf:params:acme:error:connection", "detail": "Fetching http://informij-api.abanganimedia.co.za/.well-known/acme-challenge/l0cdWV7nzd7Fb9zQoBYjHKmyc1HLBJkmrr_cNkp29sM: Connection refused", "status": 400 }, "url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/6080481142/e-PKpA", "token": "l0cdWV7nzd7Fb9zQoBYjHKmyc1HLBJkmrr_cNkp29sM", "validationRecord": [ { "url": "http://informij-api.abanganimedia.co.za/.well-known/acme-challenge/l0cdWV7nzd7Fb9zQoBYjHKmyc1HLBJkmrr_cNkp29sM", "hostname": "informij-api.abanganimedia.co.za", "port": "80", "addressesResolved": [ "134.209.201.167" ], "addressUsed": "134.209.201.167" } ] })

0 likes
1 reply
aurawindsurfing's avatar

Did you try to edit nginx config file or site config file?

If there is even one letter wrong nginx will not restart.

The simplest solution will be to spin new server with forge, put your repository on it and go straight to ssl cert, there is absolutely no reason why it should not work.

Please or to participate in this conversation.