Failed to set up cert for nginx on Amazon Linux 2023

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. crt.sh | 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: xmais.com, www.xmais.com

I ran this command: sudo certbot certonly --nginx

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): xmais.com,www.xmais.com
Requesting a certificate for xmais.com and www.xmais.com

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: www.xmais.com
Type: unauthorized
Detail: 34.205.242.146: Invalid response from https://www.hugedomains.com/domain_profile.cfm?d=xmais.com: "\r\n<!doctype html>\n<html lang="en">\n\n\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-sca"

Domain: xmais.com
Type: unauthorized
Detail: 3.130.253.23: Invalid response from https://www.hugedomains.com/domain_profile.cfm?d=xmais.com: "\r\n<!doctype html>\n<html lang="en">\n\n\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-sca"

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.

My web server is (include version): node.js 20 running in a Docker container

The operating system my web server runs on is (include version): Amazon Linux 2023 with AMI version "ami-0cd5f46e93e42a496"

My hosting provider, if applicable, is:

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): 2.8 (from certbot-2.8.0-py3-none-any.whl.metadata)

Hi @hsuhao, and welcome to the LE community forum :slight_smile:

Are you sure you own this domain?:
image

4 Likes

Thanks @rg305 for asking the question. It took me a while to realize that I made a typo. :sweat:

5 Likes

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