Auto renew let's encrypt

Bonjour,

Lorsque j'effectue ma commande de test :
certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/XXX.com.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Simulating renewal of an existing certificate for XXX.com
Performing the following challenges:
http-01 challenge for XXX.com
Waiting for verification...
Challenge failed for domain XXX.com
http-01 challenge for XXX.com
Cleaning up challenges
Failed to renew certificate XXX.com with error: Some challenges have failed.


All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/XXXX.com/fullchain.pem (failure)


1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: XXX.com
    Type: connection
    Detail: X.X.X.X: Fetching
    http://XXXX.com/.well-known/acme-challenge/jYmuR-UZA08Q4iSRdkRsLrIgEbv79q-Oeub4F9q_4WU:
    Server is speaking HTTP/2 over HTTP

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you're using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

La commande tombe en erreur suite à un problème de DNS, Pourtant la résolution s'effectue correctement
Le port 80 est ouvert sur mon firewall et le nmap confirme l'ouverture

PS : j'ai remplacé mon domaine par XXX.com

Merci d'avance

This part of the error message should say enough.

2 Likes

If you have

listen 80 http2;

replace it with:

listen 80;

HTTP/2 over cleartext is not really supported by anything, and it's not compatible with normal HTTP.

2 Likes

Thanks, good now !

1 Like