Certificate fails

hello,

I have an ubuntu 22 with nginx, on a server inside our local network. I developed a php app, and I am trying to setup a certificate for it.

this is the result:

root@application-srv:/var/www/telefoni# certbot -v --nginx -d telefoni.newtimegroup.it
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for telefoni.newtimegroup.it
Performing the following challenges:
http-01 challenge for telefoni.newtimegroup.it
Waiting for verification...
Challenge failed for domain telefoni.newtimegroup.it
http-01 challenge for telefoni.newtimegroup.it

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: telefoni.newtimegroup.it
  Type:   unauthorized
  Detail: 159.69.197.187: Invalid response from http://telefoni.newtimegroup.it/.well-known/acme-challenge/FLqowBL1C5z4Ar_0t9O7v91KrYHg6fDSk7LBOyRhtaY: 404

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Cleaning up challenges
Some challenges have failed

how to solve this?

thanks a lot

1 Like

Are you running Certbot on the nginx server machine for telefoni.newtimegroup.it ?

4 Likes

hey Mike,

yes that is correct!

I think the best place to start is to look at your log:

/var/log/letsencrypt/letsencrypt.log

Make a copy of it to a .txt file and use upload button on the post menu

Or, copy/paste it to here but place 3 backticks before and after the very long output like this
```
contents of: /var/log/letsencrypt/letsencrypt.log
```

3 Likes

OR

You can post the nginx configuration, with the output of:
nginx -T

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.