My domain is: Multiple domains (one example: http://www.simonsangelholm.se/)
I ran this command: for file in /var/certs/; do (
currdate=$(date +"%d/%m-%y %T");
atrecord=$(dig +short @8.8.8.8 ${file##/});
if [[ $atrecord =~ “IP1” ]] || [[ $atrecord =~ “IP2” ]]
then
wwwrecord=$(dig +short @8.8.8.8 www.${file##/});
if [[ $wwwrecord =~ “IP1” ]] || [[ $wwwrecord =~ “IP2” ]]
then
cd /var/certs/${file##/}
simp_le
–email EMAIL
–tos_sha256 SHAKEY
–default_root /var/www/webrootauth
–server https://acme-v01.api.letsencrypt.org/directory
-f key.pem -f fullchain.pem -f account_key.json -d ${file##/} -d www.${file##/} > /var/bmss/certlog.txt
if [[ $? == 0 ]]
then
echo "$currdate: created certs for ${file##/}"
fi
if [[ $? == 2 ]]
then
echo "$currdate: error creating certs for ${file##/}"
fi
fi
fi
) done
/bin/systemctl reload nginx.service
/bin/systemctl status nginx.service
It produced this output: some outputs are: 2018-03-13 17:28:27,178:INFO:simp_le:1383: Certificates already exist and renewal is not necessary, exiting with status code 1. <-- These output works. But some outputs are:
2018-03-13 17:27:24,960:INFO:simp_le:1211: Generating new account key
2018-03-13 17:27:27,424:INFO:requests.packages.urllib3.connectionpool:758: Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2018-03-13 17:27:27,717:INFO:requests.packages.urllib3.connectionpool:758: Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2018-03-13 17:27:28,056:INFO:requests.packages.urllib3.connectionpool:758: Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
ACME server returned an error: urn:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new registration :: too many registrations for this IP: see https://letsencrypt.org/docs/rate-limits/
Probably those sites that can’t be renewed.
My web server is (include version): CentOS Linux 7 (Core) with Nginx
I checked the rate limit link (https://letsencrypt.org/docs/rate-limits/) to see if that’s the problem, and last update is yesterday, but I don’t know what have changed on rate limit that could cause this problem. I’ve lost more than 30-40 certs today and yesterday so I have no idea if it’s because of the changed rate limits or if it’s something else.
Thanks for taking your time to read this!