Issues after uninstalling certificate



I have uninstalled using certbot delete but now I can not restart nginx, I am seeing the following error. I have checked the /etc/nginx/nginx.conf file and there is no reference to any certificate in here. I have deleted the file with the server block in for this uninstalled certificate so it isn’t related to this. For some reason nginx is looking for the uninstalled certificate but I don’t know why?

[emerg] BIO_n  ew_file("/etc/letsencrypt/live/") failed (SSL: 
error:02001002:system library:fopen:No such file or d               
irectory:fopen(\'/etc/letsencrypt/live/\',\'r\') error:2006D080:BIO 
routines:BIO_new_file:no such fi               le)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n',)
root@spinchix:/etc/nginx/sites-enabled# nano /etc/nginx/nginx.conf


Hi @dbj2000

you may have additional config files. With vHost-definitions or with a standard definition.


I found the issue, it was from a shared server block in a config file which was for some reason trying to load the wrong certificate, the uninstalled one. I was using this server block for 2 domains, hence the mixup



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.