I had to reinstall nginx on my server. Yesterday I got a new certificate for my domain and everything was find. But today when I tried to install the certificate one more time, I always received the problem finding the server_name on the /etc/nginx/sites-enable/waistudio.co file that is on /etc/nginx/sites-available/waistudio.co.
The config file is the same that I used yesterday, and the server name is correct.
I tried to remve the certificate and reinstall several times and now I reached the limit attemps.
I appreciate your help in order to know how i can solve this issue and if there is a way to have more attempts so I can try to have the certificate again.
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:
waistudio.co
I ran this command:
sudo certbot --nginx -d waistudio.co -d www.waistudio.co
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/waistudio.co
Could not automatically find a matching server block for www.waistudio.co. Set the server_name
directive to use
the Nginx installer.
IMPORTANT NOTES:
- Unable to install the certificate
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/waistudio.co/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/waistudio.co/privkey.pem
Your cert will expire on 2021-05-04. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew all of
your certificates, run "certbot renew"
My web server is (include version):
Ubuntu 20.04 (LTS) x64
The operating system my web server runs on is (include version): Ubuntu 20.04 (LTS) x64
My hosting provider, if applicable, is:
Digital ocean
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.40.0