Each of our clients has a separate server with WHM, each of which uses AutoSSL by cPanel (Sectigo). On one of those servers, it appears that AutoSSL has not been attempting to auto renew installed certificates. On two recent occasions, we've needed to run Check User in order to get the certificate renewed. Here's the log from one of those manual instances:
So the certificate was renewed manually, but I'm wondering why this needed to happen in the first place. You can see that the certificate expired 0.54 days ago.
While working with the hosting provider, additional Check User requests were made. Unfortunately, this may have deleted past logs related to this this account that may have shown renewal failures. The hosting provider's solution was to manually create a cron job that would make AutoSSL check for upcoming expirations every 12 hours. That's fine, but I was under the impression that AutoSSL already begins this check 15 days in advance:
"Certificate renewal attempts for cPanel-signed certificates begin within 15 days of expiry." (via this post).
I have since enabled the "Notify the user for AutoSSL certificate request failures, warnings, and deferrals" option to bring more visibility.
Code:
Log for the AutoSSL run for “{{user account}}”: Thursday, September 26, 2019 8:58:23 AM GMT-0400 (cPanel (powered by Sectigo))
8:58:23 AM AutoSSL’s configured provider is “cPanel (powered by Sectigo)”.
This AutoSSL provider does not poll for certificate availability immediately after a certificate request submission. Instead, it submits certificate requests then periodically polls the cPanel Store for each requested certificate and installs it after a successful retrieval. The system will record all requests, retrievals, and installations for the current AutoSSL run in this log.
Checking websites for “{{user account}}” …
8:58:23 AM Analyzing “domain.tld” …
8:58:23 AM ERROR TLS Status: Defective
ERROR Certificate expiry: 9/26/19, 12:00 AM UTC (0.54 days ago)
ERROR Defect: OPENSSL_VERIFY: The certificate chain failed OpenSSL’s verification (0:10:CERT_HAS_EXPIRED).
8:58:23 AM Performing DCV (Domain Control Validation) …
8:58:23 AM Local HTTP DCV OK: domain.tld
Local HTTP DCV OK: parked-domain.tld
Local HTTP DCV OK: www.domain.tld (via domain.tld)
Local HTTP DCV OK: mail.domain.tld (via domain.tld)
Local HTTP DCV OK: www.parked-domain.tld (via parked-domain.tld)
Local HTTP DCV OK: mail.parked-domain.tld (via parked-domain.tld)
Local HTTP DCV OK: parked-subdomain.domain.tld (via domain.tld)
Local HTTP DCV OK: www.parked-subdomain.domain.tld (via domain.tld)
Local HTTP DCV OK: mail.parked-subdomain.domain.tld (via domain.tld)
8:58:23 AM Analyzing “domain.tld”’s DCV results …
8:58:23 AM AutoSSL will request a new certificate.
8:58:23 AM The system will attempt to renew the SSL certificate for the website (domain.tld: domain.tld www.domain.tld mail.domain.tld parked-domain.tld www.parked-domain.tld mail.parked-domain.tld parked-subdomain.domain.tld www.parked-subdomain.domain.tld mail.parked-subdomain.domain.tld).
No CAA record added because there is no CAA record from another provider in the DNS for parked-domain.tld.
No CAA record added because there is no CAA record from another provider in the DNS for domain.tld.
8:58:24 AM The cPanel Store received “domain.tld”’s certificate order. (Order Item ID: 727724213) The system will periodically poll the cPanel Store for the issued certificate and then install it after a successful retrieval.
8:58:25 AM The system has completed the AutoSSL check for “{{user account}}”.
8:59:01 AM Polling for “{{user account}}”’s new certificate for “domain.tld” (order item ID “727724213”) …
8:59:02 AM The certificate is available. The system will now attempt to install it.
SUCCESS The certificate is now installed!
While working with the hosting provider, additional Check User requests were made. Unfortunately, this may have deleted past logs related to this this account that may have shown renewal failures. The hosting provider's solution was to manually create a cron job that would make AutoSSL check for upcoming expirations every 12 hours. That's fine, but I was under the impression that AutoSSL already begins this check 15 days in advance:
"Certificate renewal attempts for cPanel-signed certificates begin within 15 days of expiry." (via this post).
I have since enabled the "Notify the user for AutoSSL certificate request failures, warnings, and deferrals" option to bring more visibility.