My domain is:Hey all, I’m having some issues starting up my nginx after I deleted one of my certificates .
I ran this command: to delete the certificate I ran certbot --nginx delete --cert-name my-domin.com ,I delete from my site-enabled/default the path to the certificate and ran nginx -t
It produced this output:
BIO_new_file("/etc/letsencrypt/live/ my-domin.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/ my-domin.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
My web server is (include version):
The operating system my web server runs on is (include version):ubuntu 18.04
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
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):certbot 0.27.0
I dont understaned why nginx recognize that I dont have this certificate if I removed the call from site-enabled/default . I also checked my nginx.conf and there is no reference to /etc/letsencrypt/live/ my-domin.com/fullchain.pem .
nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/my-domain.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/livemy-domain.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
I dont have the certificate because I deleted it so ofcure I have the error "no such file". I removed from my default file the reference to certificate so why am I getting this error.:\
can I multiple certificate to the same domain?
what will be the steps:
1.create a new certificate to domain in this step certbot will add automatically the references to the new certificate? and then I will just delete the old references ?
how can I give a certificate a different name from domain name?
Well, @JuergenAuer's suggestion is good, but if you want to simplify, just delete default.bkp, delete the 5 lines you commented (certbot will recreate them anyhow), then
sudo nginx -s reload
I'm not seeing a port 80 listen anywhere, which is rather odd. Do you not have a port 80 server block?
Are they all junk? Do any of them have exactly the domain names you want?
For the second command (ls), do you see any remaining cruft from previous certificates that aren't listed by certbot? Are all the files in the live folders symlinks?