BIO_new_file, there is no folder in /etc/letsencrypt

My domain is:

I ran this command: sudo nginx -s reload

It produced this output:
nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

My web server is (include version): A virtual Machine

The operating system my web server runs on is (include version): ubuntu 16.04

My hosting provider, if applicable, is: It is a local host, I’m trying to set up a web server with Nginx, php, mysql and wordpress on a Virtual Machine

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):

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

[Note]: I’m following this tutorials if that helps:
I’m a student and I’m trying to learn some Linux so please be specific, thanks.

1 Like

Hi @AndreySuescun

please read that tutorial exact.


Make sure that you have met the following prerequisites before continuing with this tutorial:

  • You have a domain name pointing to your server public IP. We will use .
  • You are logged in as a user with sudo privileges.
  • You have Nginx installed by following these instructions.
  • An SSL certificate installed for your domain. You can install a free Let’s Encrypt SSL certificate by following these instructions.

Checking your domain via - there is no certificate created.

So the Step Configuring Nginx with the restart can't work.

No certificate -> config file uses not existing certificate -> restart fails.


Thank you and sorry for didn’t read the prerequisites
Now, how can I get a “local” certificate? Any suggestion for what can I do?

Is the problem that is not really your domain, but a domain that you were using as a test?

If you don't have your own domain name, you should look for a tutorial about creating a self-signed certificate rather than requesting a certificate from Let's Encrypt, since Let's Encrypt issues only publicly-trusted certificates (and must confirm that the recipient of the certificate controls the domains listed in the certificate).

1 Like

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