Cannot load certificate

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: xyz.in

I ran this command:salt minion state.apply letsencrypt

It produced this output: Error while running nginx -c /etc/nginx/nginx.conf -t.

              nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/ozonechain.io/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/ozonechain.io/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
              nginx: configuration file /etc/nginx/nginx.conf test failed
              
              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] cannot load certificate "/etc/letsencrypt/live/ozonechain.io/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(\'/etc/letsencrypt/live/ozonechain.io/fullchain.pem\',\'r\') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')

Error while running nginx -c /etc/nginx/nginx.conf -t.

              nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/ozonechain.io/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/ozonechain.io/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
              nginx: configuration file /etc/nginx/nginx.conf test failed
              
              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] cannot load certificate "/etc/letsencrypt/live/ozonechain.io/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(\'/etc/letsencrypt/live/ozonechain.io/fullchain.pem\',\'r\') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')

My web server is (include version): nginx

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

My hosting provider, if applicable, is: AWS

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 1.12.0

Is this thread, except for the hostname, the same issue as your thread Ssl certificate not cretaed?

If so, it's probably better to keep everything contained in a single thread, preferably the one I linked above, as Dan already replied there.

4 Likes

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