we are unable to renewal certificate for below domain and we are always facing the below issue and this is production instance and kindly please look into it
I ran this command: certbot -q renew --renew-hook ‘/etc/init.d/nginx reload’
It produced this output:
Attempting to renew cert (confluence.dimagi.com) from /etc/letsencrypt/renewal/confluence.dimagi.com.conf produced an unexpected error: urn:ietf:params:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new order :: too many certificates already issued for exact set of domains: confluence.dimagi.com: see https://letsencrypt.org/docs/rate-limits/. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/confluence.dimagi.com/fullchain.pem (failure)
My web server is (include version):
The operating system my web server runs on is (include version): nginx/1.14.2
I can login to a root shell on my machine (yes or no, or I don’t know): yes
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.28.0
Please also post the contents of /etc/letsencrypt/renewal/confluence.dimagi.com.conf.
The symlinks are wrong. They're pointing to ../../archive/confluence.dimagi.com-0001/xxxx1.pem instead of ../../archive/confluence.dimagi.com/xxxx2.pem.
(Also, the forum software changed .. to …, but that's not important.)
Every time it renews, Certbot is saving the new files to /etc/letsencrypt/archive/confluence.dimagi.com/, but because /etc/letsencrypt/live/confluence.dimagi.com/ is misconfigured, it can't find them again.
You can fix it with something along the lines of:
# Make a backup
cp -ai /etc/letsencrypt/ /root/etc-letsencrypt-backup-2019-04-15
# Replace the links
ln -fs ../../archive/confluence.dimagi.com/cert2.pem /etc/letsencrypt/live/confluence.dimagi.com/cert.pem
ln -fs ../../archive/confluence.dimagi.com/chain2.pem /etc/letsencrypt/live/confluence.dimagi.com/chain.pem
ln -fs ../../archive/confluence.dimagi.com/fullchain2.pem /etc/letsencrypt/live/confluence.dimagi.com/fullchain.pem
ln -fs ../../archive/confluence.dimagi.com/privkey2.pem /etc/letsencrypt/live/confluence.dimagi.com/privkey.pem
# Delete old directory
rm -r /etc/letsencrypt/archive/confluence.dimagi.com-0001/