I generated an SSL certificate on one of my subdomains. I then tried to delete/revoke
the certificate using the command certbot delete
. A little terminal menu popped up asking me what certificate I would like to delete. I deleted the one I wanted to delete. Now, when running sudo nginx -t
I am getting error messages saying:
nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/app.mydomain.nl/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory
I guess the certbot delete
command did not fully delete the certificate or something? I am clueless what to do right now…
2
Answers
You probably used the command
$ certbot --nginx
and your nginx config file was edited to look for the certificate:The
$ certbot delete
will not change it back, so you have to delete the part related to the certificated and change theserver_name
to your ip address, so it will look like:Comment or remove these lines
in all files available in
/etc/nginx/sites-available