I am trying to do the auto cert renewal using certbot, acme and incommons (sectigo).
the certificate issued successfully but the dry run failed.
[root@1234]# certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/certname
Simulating renewal of an existing certificate for domain1 and domain2
Failed to renew certificate domain1 with error: Expecting value: line 1 column 1 (char 0)
All simulated renewals failed. The following certificates could not be renewed:
When you opened this thread in the Help section, you should have been provided with a questionnaire. Maybe you didn't get it somehow (which is weird), or you've decided to delete it. In any case, all the answers to this questionnaire are required:
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
Thanks for the /etc/letsencrypt/renewal information. It looks normal to me. So I guess we would want to see some information from /var/log/letsencrypt, at least a few lines prior to the Failed to renew certificate domain1 with error line.
I moved cli.ini file from /etc/letsencrypt/cli.ini to /etc/letsencrypt/renewal/cli,ini and get the certificate again.
and ran the:
[root@1234]# certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/1234
Account registered.
Simulating renewal of an existing certificate for domain1 and domain2
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: 1234
Type: connection
Detail: XXXX: Fetching http://1234/.well-known/acme-challenge/xxxxxxxx Timeout during connect (likely firewall problem)
Domain: 1234
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for 1234 - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for 1234 - check that a DNS record exists for this domain
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Failed to renew certificate cert-mae with error: Some challenges have failed.
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/domain-1/fullchain.pem (failure)
That will just cause it to be ignored completely. Perhaps there was something in the cli.ini file that was overriding other settings in an undesirable way?