Hi there! I'm fairly novice at this sort of stuff, and i'm not exactly sure what i've done wrong? I've made a website following various tutorials on youtube, and even got it working on Nginx with http. For configuring the website on Nginx, and attempting to obtain a SSL, i've followed these tutorials;
Any help is appreciated, & apologies for not exactly knowing what i'm doing. We all start somewhere
My domain is: phatserver.xyz
I ran this command: sudo certbot --nginx -d phatserver.xyz -d www.phatserver.xyz
It produced this output:
sudo certbot -v --nginx -d phatserver.xyz -d www.phatserver.xyz
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for phatserver.xyz and www.phatserver.xyz
Performing the following challenges:
http-01 challenge for www.phatserver.xyz
Waiting for verification...
Challenge failed for domain www.phatserver.xyz
http-01 challenge for www.phatserver.xyz
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: www.phatserver.xyz
Type: unauthorized
Detail: (redacted IP): Invalid response from http://phatserver.xyz: "\r\n<html lang="en">\r\n\r\n <meta charset="UTF-8">\r\n <meta name="viewport" content="width=device-width, in"
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.
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): I'm not sure? I use nginx if that's what this question is. i'm novice.
The operating system my web server runs on is (include version): Ubuntu 22.04
My hosting provider, if applicable, is: Hiden-Cloud (seems to be an amazon server)
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): 1.21.0