Can't get new certificate from certbot for my domain

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
multipasport.xyz

I ran this command:
sudo certbot --nginx -d multipasport.xyz

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for multipasport.xyz

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: multipasport.xyz
  Type:   unauthorized
  Detail: Invalid response from http://multipasport.xyz/.well-known/acme-challenge/37NB7Oj7gzsWapH2cZcw7-cwVavjDgBxcNz5NjcUAes [164.90.181.187]: "\n<!doctype html>\n<html lang=\"en\">\n<head>\n  <title>Not Found</title>\n</head>\n<body>\n  <h1>Not Found</h1><p>The requested resource"

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.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version):
nginx/1.18.0 (Ubuntu)

The operating system my web server runs on is (include version):
Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-84-generic x86_64)

My hosting provider, if applicable, is:
www.reg.ru

I can login to a root shell on my machine (yes or no, or I don't know):
yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 1.19.0

1 Like

2 posts were split to a new topic: Unable to renew cert

Hi @multipassport, welcome to the LE community forum :slight_smile:

The problem is likely within the nginx config.
Please show the output of:
sudo nginx -T

1 Like

Yes, thanks a lot! It actually was a problem with nginx config. I just added server_name and root settings and it worked like a charm

2 Likes

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