Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

387
Views
sudo certbot delete created errors

I wanted to delete my Certbot SSL, I ran "sudo certbot delete" and did it. After when restarting nginx, it gave me this error:

nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/fishymine.xyz/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/fishymine.xyz/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file).

How do I fix this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The problem is that certbot automatically insert config rules when you add a certificate. All of the inserted lines includes "Cerbot" so you can do this to remove these lines :

sudo sed -i '/Certbot/d' /etc/nginx/sites-available/*
sudo sed -i '/Certbot/d' /etc/nginx/sites-enabled/*

then try

sudo nginx -t
sudo certbot --nginx

if you still get an error, you can check the files in /etc/nginx/sites-* manually, or just delete their content if you don't care about the existing config by :

sudo chmod 777 /etc/nginx/sites-enabled/default
sudo echo '' > /etc/nginx/sites-enabled/default
sudo chmod 644 /etc/nginx/sites-enabled/default

sudo chmod 777 /etc/nginx/sites-available/default
sudo echo '' > /etc/nginx/sites-available/default
sudo chmod 644 /etc/nginx/sites-available/default
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!