My domain is: vibetunes.space
I ran this command: sudo certbot --nginx -d api.vibetunes.space -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for api.vibetunes.space
Performing the following challenges:
http-01 challenge for api.vibetunes.space
Waiting for verification...
Challenge failed for domain api.vibetunes.space
http-01 challenge for api.vibetunes.space
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: api.vibetunes.space
Type: connection
Detail: <vm-ip-masked>: Fetching http://api.vibetunes.space/.well-known/acme-challenge/i66DklfZQBvnUkcHLFE371XLp-U6Y2T5euZ_S9EimPE: Error getting validation data
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): nginx
The operating system my web server runs on is (include version): Ubuntu 22.04
My hosting provider, if applicable, is: Cloudflare
I can login to a root shell on my machine (yes or no, or I don't know): Yes
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.9.0
Need help in getting SSL cert.