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:
I ran this command: sudo certbot install --cert-name my_domain_name
It produced this output:Saving debug log to /var/log/letsencrypt/letsencrypt.log
Deploying certificate
Could not install certificate
Could not automatically find a matching server block for my_domain.com. Set the server_name directive to use the Nginx installer.
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
My hosting provider, if applicable, is:Google cloud
I can login to a root shell on my machine (yes or no, or I don't know): I accidentally deleted rsa certificate to get ssl certificate thats the reason y i am unable to open my cloud shell
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
I have deleted the certificates and tried doing whole process again but when I used this command "sudo certbot --nginx". It is giving this output "Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: (inventree website)
Type: dns
Detail: DNS problem: SERVFAIL looking up A for (inventree website) - the domain's nameservers may be malfunctioning; DNS problem: SERVFAIL looking up AAAA for (inventree website)- the domain's nameservers may be malfunctioning
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.
You have an incorrect CNAME in your DNS. It creates a loop giving the SERVFAIL
I tested your actual domain name that you had in one of your deleted posts.
The below site is one good test site that describes this error https://dnsviz.net/
The certificate was saved, but could not be installed (installer: nginx). After fixing the error shown below, try installing it again by running:
certbot install --cert-name lightspeedphotonics-inventree.com
Could not automatically find a matching server block for lightspeedphotonics-inventree.com. Set the server_name directive to use the Nginx installer.
please help me out with this ?
when I deleted the certificate and tried to reinstall it , its showing this way.
That was not needed. You could have just repeated the instructions and tried installing that cert after you corrected your nginx config.
I saw your latest post which you now deleted. It has your nginx config as I had asked.
You have a server block listening on port 80 but it does not have a server_name. Certbot needs that to know which one to update. Just add that
Your server block would start with:
server {
# comments
listen 80;
server_name example.com;
location / {
... (and the rest)
Of course replace example.com with your actual domain name and restart nginx.
You also need to fix your DNS CNAME entry as I pointed out earlier. Requests for a new cert to replace the one you deleted will now fail until you fix that.