New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

LetsEncrypt cron job failing

Started by kadybee, May 14, 2022, 12:15:13 AM

Previous topic - Next topic

kadybee

Just recently, the LE Certs update cron job has started to fail renewals - manual LE renewal via the WebPanel works just fine.

The error being:
config file is empty, can not read CA_EAB_KEY_ID
config file is empty, can not read CA_EAB_HMAC_KEY
config file is empty, can not read CA_EMAIL
No EAB credentials found for ZeroSSL, let's get one


It appears to be using the correct CA:  Using CA: https://acme.zerossl.com/v2/DV90
and the email is already registered via acme.sh --register-account -m <email>

As mentioned, the manual update (Renew Now) via the ssl_certificate module works correctly, it is the acme.sh --cron --home "/root/.acme.sh/cwp_certs" which fails.

Thanks, Klaus


DaveF

I have a couple of servers that are not auto-renewing.
Don't see these errors in the log.
Anyone else seeing this?
Is there a known fix?

-Dave

emerysteele

#2
Had same issue. Believe it's caused by acme.sh now defaulting to ZeroSSL instead of LetsEncrypt. Tried registering acme.sh ZeroSSL email, but still wasn't renewing.

Tried changing acme.sh back to letsencrypt (didn't help either. with expired domains at least, might help with future renewals):
/root/.acme.sh/acme.sh --set-default-ca  --server  letsencrypt

Had to go into the config file (/root/.acme.sh/cwp_certs) for each domain that was failing and change
Le_API='https://acme.zerossl.com/v2/DV90'
to
Le_API='https://acme-v02.api.letsencrypt.org/directory'

then run the cron again
/root/.acme.sh/acme.sh --cron --home /root/.acme.sh/cwp_certs --renew-hook "systemctl reload postfix dovecot"

it now works! :)

Not sure if I should look into trying to get ZeroSSL working. But LetsEncrypt seems to be working fine...

Ivansmo

This morning I had the same issue. My site cert was expired. I make renewals manually without any issues with it. Hovbewer, For some reason there weren't Services installed on the list although I know I  install them at the beginning.
Now when I install Services mail and webmail, I see a double entry. I can't remove them and that bothers me.

I don't understand this message and I appreciate any help.
Thanks