Accidently Deleted SSL Certifiacte

You need to get that fixed and working.

1 Like

That's the whole issue this thread is all about Bruce..

OP simply needs to either remove/comment out the HTTPS server block or change the SSL directives to the snake oil certs temporarily.

3 Likes

I am not sure the OP knows that. :thinking:

1 Like

So do I need to do that here /etc/nginx/nginx.conf or /etc/nginx/sites-enabled/default because I don't see the server blocks on the .conf and I don't know if it that matters or not

This exact part is what needs to be deleted in order to be able to restart nginx:

1 Like

Fixed it had to create the path /etc/letsencrypt/live/filehb.tech/ because it got deleted from there I had to run sudo certbot certonly --standalone -d filehb.tech which successfully gave me a new certificate. Then, I had to Generate DH Parameters with sudo openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem 2048. Finally after that, I just had to update and restart nginx and everything is working again. Thank you to everyone for trying to help I learned a lot from this

I'm curious... Why do you still use DH params?
[you might do better by switching from RSA to ECDSA type certs]

2 Likes

Since this is a group project I guess the person who set it up initially had it that way because in the /sites-available/default file it had ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot and Nginx was unable to find this file in the specified location (/etc/letsencrypt/) so that's why I had to generate DH Parameters

Well, by that logic it will never go away - LOL

2 Likes

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