Hello everyone.
I am trying to renew my two certificates and the procedure is failing.
Here's the command I used:
sudo certbot -v --nginx --cert-name ignace72.eu -d ignace72.eu -d beta.ignace72.eu --key-type ecdsa --elliptic-curve secp384r1
This is the terminal output to this command:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
/etc/nginx/conf.d/crowdsec_nginx.conf:149 contained the 'init_by_lua_block' directive, which is not supported by Certbot. The file has been ignored, which may prevent Certbot from functioning properly. Consider using the --webroot plugin and manually installing the certificate.
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for ignace72.eu and beta.ignace72.eu
Performing the following challenges:
http-01 challenge for beta.ignace72.eu
http-01 challenge for ignace72.eu
Waiting for verification...
Challenge failed for domain beta.ignace72.eu
Challenge failed for domain ignace72.eu
http-01 challenge for beta.ignace72.eu
http-01 challenge for ignace72.eu
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: beta.ignace72.eu
Type: unauthorized
Detail: 82.65.105.225: Invalid response from http://beta.ignace72.eu/.well-known/acme-challenge/w1F8YsH-AgxC05i67WlU5n8p4sPUXIGkzpJs8ziOB48: 404
Domain: ignace72.eu
Type: unauthorized
Detail: 82.65.105.225: Invalid response from https://ignace72.eu/.well-known/acme-challenge/I3is-C07txb-NlKoUun8ysSQ4-GiHtfQo8AVhwk0Rpc: 404
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
Cleaning up challenges
/etc/nginx/conf.d/crowdsec_nginx.conf:149 contained the 'init_by_lua_block' directive, which is not supported by Certbot. The file has been ignored, which may prevent Certbot from functioning properly. Consider using the --webroot plugin and manually installing the certificate.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
Could a kind soul help me?
Thank you in advance.