No such file or directory /etc/letsencrypt/options-ssl-nginx.conf

I've accidently deleted my config file and have no back up. How can I reinstate config, or reinstall Let Encrypt?

tcmhub.site

I ran this command: rm -f /etc/letsencrypt/options-ssl-nginx.conf

then: sudo certbot --nginx

It produces this output: no such file or directory

My web server is (include version): unknown

The operating system my web server runs on is (include version): Ubuntu 20.04.1

My hosting provider, if applicable, is: linode

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.40.0

1 Like

Which config file got deleted?
Just /etc/letsencrypt/options-ssl-nginx.conf ?

If so, use this to create it again:

# This file contains important security parameters. If you modify this file
# manually, Certbot will be unable to automatically provide future security
# updates. Instead, Certbot will print and log an error message with a path to
# the up-to-date file that you will need to refer to when manually updating
# this file.

ssl_session_cache shared:le_nginx_SSL:10m;
ssl_session_timeout 1440m;
ssl_session_tickets off;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;

ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
2 Likes

That file is also accessible from the certbot GitHub repository, if you'd rather like an official source:

(Directly downloadable from https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf )

2 Likes

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