Page 1 sur 1

Probleme renouvellement certificat letsencrypt

Publié : 17 avr. 2021, 12:28
par samourai47
Hello
J'utilise nginx et j'ai deja une fois renouvellé automatiquement le certificat en cron comme indiqué dans la doc de domoticz
Pour cel je lance en cron

Code : Tout sélectionner

 sudo /etc/letsencrypt/certbot-auto renew --webroot -w ~/domoticz/www/ --deploy-hook ~/domoticz/scripts/deploy-cert.sh >/dev/null
Par contre pour le renouvellemnt qui arrive cela ne fonctionne plus. J'ai ce message....

Code : Tout sélectionner

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for monsite.duckdns.org
Using the webroot path /home/pi/domoticz/www for all unmatched domains.
Waiting for verification...
Challenge failed for domain monsite.duckdns.org
http-01 challenge for monsite.duckdns.org
Cleaning up challenges
Attempting to renew cert (monsite.duckdns.org) from /etc/letsencrypt/renewal/monsite.duckdns.org.conf produced an unexpected error: Some challenges have f            ailed.. Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/monsite.duckdns.org/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
le script deploy-hook

Code : Tout sélectionner

#!/bin/bash
sudo mv /home/pi/domoticz/server_cert.pem /home/pi/domoticz/server_cert.pem.org
sudo cat /etc/letsencrypt/live/monsite.duckdns.org/privkey.pem >> /home/pi/domoticz/server_cert.pem
sudo cat /etc/letsencrypt/live/monsite.duckdns.org/fullchain.pem >> /home/pi/domoticz/server_cert.pem
sudo cp /home/pi/domoticz/server_cert.pem /home/pi/domoticz/letsencrypt_server_cert.pem
sudo cat /etc/ssl/certs/dhparam.pem >> /home/pi/domoticz/server_cert.pem
sudo /etc/init.d/domoticz.sh restart
Une idee ou une piste pour solutionner?
Merci d'avance

Re: Probleme renouvellement certificat letsencrypt

Publié : 17 avr. 2021, 14:13
par samourai47
du coup j'ai essaye de reinstalle le certificat depuis le départ
J'ai cette erreur

- The following errors were reported by the server:

Domain: askenian.duckdns.org
Type: connection
Detail: Fetching
http://monsite.duckdns.org/.well-known/ ... yN0wtvPYrs:
Timeout during connect (likely firewall problem)

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.


et j'ai change de box. passé de free à orange. Adresse ip verifiee et mise a jour toute les 5 mn..