Cannot obtain certificate 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: vulmiqi.com

I ran this command: sudo certbot -d vulmiqi.com --nginx

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for vulmiqi.com
nginx: [warn] conflicting server name “vulmiqi.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.vulmiqi.com” on 0.0.0.0:80, ignored
Waiting for verification…
Cleaning up challenges
nginx: [warn] conflicting server name “vulmiqi.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.vulmiqi.com” on 0.0.0.0:80, ignored
Failed authorization procedure. vulmiqi.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://vulmiqi.com/.well-known/acme-challenge/MYMk88ew2FBQOWGHWEjRaWJUsM9Fx9fBbV7iRTUQO_I [139.59.31.52]: “\r\n404 Not Found\r\n<body bgcolor=“white”>\r\n

404 Not Found

\r\n
IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: vulmiqi.com
   Type:   unauthorized
   Detail: Invalid response from
   https://vulmiqi.com/.well-known/acme-challenge/MYMk88ew2FBQOWGHWEjRaWJUsM9Fx9fBbV7iRTUQO_I
   [139.59.31.52]: "<html>\r\n<head><title>404 Not
   Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404
   Not Found</h1></center>\r\n<hr><center>"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

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

The operating system my web server runs on is (include version): Ubuntu 18.04

My hosting provider, if applicable, is: DigitalOcean

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 0.31.0

The initial challenge request should have been HTTP.
The 404 error shows HTTPS request.
So there must be a redirection.
[perhaps we can workaround this problem there]

Not sure what is causing this:

Maybe having a look at:
nginx -T
can help explain it - and help us to correct it.

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