Hi everyone,
I'm having a problem renewing my certificate.
It concerns the isfred.fr platform. For the last 5 months I've been using a script to automatically renew the certificate regularly without any problems:
#!/bin/bash
OLD_MD5_CHAIN=$(md5sum /etc/letsencrypt/live/isfred.fr/fullchain.pem | awk ‘{print $1}’)
OLD_MD5_KEY=$(md5sum /etc/letsencrypt/live/sifred.fr/privkey.pem | awk ‘{print $1}’)
# this will create a standalone server on port 81 for the certificate renewal
# every requests made to ‘http://beyond.bzh/.well-known’ will be forwarded to port 81
docker run -it --rm --name certbot \
-v ‘/etc/letsencrypt:/etc/letsencrypt’ \
-v ‘/var/lib/letsencrypt:/var/lib/letsencrypt’ \
-p 81:81 \
certbot/certbot renew --standalone --http-01-port 81
NEW_MD5_CHAIN=$(md5sum /etc/letsencrypt/live/isfred.fr/fullchain.pem | awk ‘{print $1}’)
NEW_MD5_KEY=$(md5sum /etc/letsencrypt/live/isfred.fr/privkey.pem | awk ‘{print $1}’)
if [ ‘$OLD_MD5_CHAIN’ != ‘$NEW_MD5_CHAIN’ ] && [ ‘$OLD_MD5_KEY’ != ‘$NEW_MD5_KEY’ ]; then
echo ‘[$(date +’%Y-%m-%d %H:%M:%S‘)] Changing certificate and key’ >> /root/certbot.log
cp /etc/letsencrypt/live/isfred.fr/fullchain.pem /home/fred/CTFd/conf/nginx/fullchain.pem
docker exec nginx nginx -s reload # reload the new configuration
fi
Since today this one does not work any more, here the error which I have lorsequeque when I try to launch it manually:
Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: isfred.fr
Type: unauthorized
Detail: 51.75.241.163: Invalid response from https://isfred.fr/.well-known/acme-challenge/XITQsEH-x5a5F8GzT_FVgZjSMH9hXLEMo8qnm3Xe3iU: 404
Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 81. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.
Failed to renew certificate isfred.fr with error: Some challenges have failed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/isfred.fr/fullchain.pem (failure)
Thanks for your help in advance.