Question

Newbie: Site not working after unsuccessful attempt at deleting SSL certificate

Posted July 20, 2021 67 views
Nginx

Hello. I have an old version of Ubuntu (its a long story, I cant update right now for the next few months since its running an old version of a website which my developers are reworking with latest version of php etc).

My previous developer had assigned an SSL certificate. Then left. Which expired. I couldn’t update it for various reasons. Now I tried to delete it. being a newbie I think I didn’t do it well.

Now my site isn’t working. Browser says cant connect to server.
Nginx doesn’t seem to be running.

I get the : “BIOnewfile(”/etc/letsencrypt/live/websitename.com/fullchain.pem") failed (SSL"
Error.

Active: failed (Result: exit-code)
Failed with result ‘exit-code’

(not necessarily in that order. I typed the above errors because I couldn’t copy paste from the console :(

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @paramvir00,

It seems your previous developer installed an Let’s Encrypt SSL. You should be able to renew it using certbot. I’ll recommend checking one of the following articles:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04

or

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

Additionally, here is anothre good tutorial which ou should be able to use in your case:

https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04

All of the above tutorials will help you renew and reinstall your certificate and add it to Nginx. Once you do, you shouldn’t have any issues with your website.

by Mitchell Anicas
In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 16.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to learn how to use the certificate with your setup.
  • Hi KFsys thanks. I have Ubuntu 15.10
    I get the error “The PPA has been deprecated”

    I have been searching for installing Certbot on Ubuntu 15.10 but cant seem to get info.

    Before attempting to install Cerbot I am getting:
    nginx.service: Unit entered failed state.
    Nginx.service: Failed with result ‘exit-code’

    furthermore

    The nginx plugin is not working: there may be problems with your existing configuration.
    The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIOnewfile(“/etc/letsencrypt/live/sitename.com/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen ('/etcc/letsencrypt/live/sitename.com/fullchain.pem','r') error:2006D080:BIO routines:BIOnewfile:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’,)

    • Hi @paramvir00,

      Your Ubuntu version is quite old. I would recommend to immediately create a Droplet with Ubuntu 20.04 and move your Application on it.

      Regarding the Certbot installation on Ubuntu 15.04, I’m not sure it exists but it would for sure be deprecated if it does. It’s just that 15.04 was EOL February 4, 2016 which means no updates have been created since then for it.