Unable to create a certificate

My domain is: ignace72.eu

I've reinstalled my server.
I couldn't save the certificates, I'd like to be able to renew them to have a working server again.

I ran this command:
sudo certbot --nginx --cert-name ignace72.eu -d ignace72.eu -d matomo.ignace72.eu --key-type ecdsa --elliptic-c
urve secp384r1

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

2023/06/12 02:17:17 [emerg] 5129#5129: cannot load certificate "/etc/letsencrypt/live/ignace72.eu/fullchain.pem": BIO_new_file()
failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/letsencrypt/live/ignace72.eu/fullchain
.pem, r) error:10000080:BIO routines::no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

If I comment on the lines pointing to the certificates, I get :

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

2023/06/12 02:19:41 [emerg] 5173#5173: no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-en
nginx: configuration file /etc/nginx/nginx.conf test failed

My web server is (include version): Nginx 1.22.1

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

Debian 12

My hosting provider, if applicable, is:

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

In sudo

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 2.1.0

Can you post the contents of this file

And, show result of this

sudo nginx -t

Hi @ignace72, and welcome to the LE community forum :slight_smile:

Please explain that with as much detail as possible.

That is an expected behavior.
[the vhost is set to use SSL and no cert is provided therein]

Please show the output of:
certbot certificates


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