Skip to main content

AutoSSL not attempting to auto renew

Comments

10 comments

  • cPanelLauren
    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
    0
  • jnyr5478
    Hi Lauren. There are now many more logs available than there were yesterday, mainly because the cron that the hosting provider created is running every 1 minute instead of every 12 hours as intended :(. Supposedly it's just been fixed. Unfortunately, there are no older logs for the account in question. I'm guessing that log retention is based on the age of the log file and not the number of files?
    0
  • cPanelLauren
    I'm curious about something. If you run the following API Function for one of the users who was previously experiencing an issue (i.e., didn't get their cert auto-renewed) does anything come back?
    0
  • jnyr5478
    I'm curious about something. If you run the following API Function for one of the users who was previously experiencing an issue (i.e., didn't get their cert auto-renewed) does anything come back?
    0
  • cPanelLauren
    Guessing this means no problems.

    Yea there aren't any current issues logged
    When the cron was running every minute, it was generating a log file for each run. Each of those logs checks each account and reports "SUCCESS TLS Status: OK" and then lists the certificate expiry date, all of which are in the 40-80 day range.

    Right, so that would mean when the cron is present the check is being completed. Because this check should be completed nightly what I wanted to gather was information on what is happening when the custom cron to check for this isn't present. Is there logs present indicating that it did run or any data in the cPanel error log potentially indicating why the check didn't run, etc.
    0
  • jnyr5478
    Is there logs present indicating that it did run or any data in the cPanel error log potentially indicating why the check didn't run, etc.

    ^^ Eureka (I think)! In /usr/local/cpanel/logs/error_log, I found a warning line from 9/26 saying that autossl_check expected to find the pki-validation file at https://domain.tld/.well-known/pki-validation/{long string}.txt
    but that the server response is a 301 saying that the file has moved to: https://www.domain.tld/.well-known/pki-validation/{long string}.txt
    So I have four questions:
    • Is this likely the cause of failing auto-renewals?
    • Is AutoSSL looking for a non-www URL because the cPanel user doesn't include www (the cPanel user is "domain.tld", not "www.domain.tld")?
    • Is it possible to tell AutoSSL where to look? I can add conditions to our rewrite rules if not.
    • The /.well-known/pki-validation directory is currently empty. When are txt files created and deleted?
    0
  • jnyr5478
    Ah, I think I understand now. We've seen the following lines injected into .htaccess on other servers: RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$
    These lines are missing from the .htaccess file for this site. Maybe they were inadvertently removed when someone pushed a change to that file. I've also just read about the
    0
  • cPanelLauren
    Hi @John Manning That should be automatically entered into the .htaccess when there's a redirect present on the domain that prevents the DCV check from being completed. Try the Global DCV Passthrough and let me know if you continue to see the same behavior.
    0
  • jnyr5478
    Hi @John Manning That should be automatically entered into the .htaccess when there's a redirect present on the domain that prevents the DCV check from being completed. Try the Global DCV Passthrough and let me know if you continue to see the same behavior.

    The next upcoming renewal should happen on or before 11/26/19. I'll update this thread with results. Thanks for your help!
    0
  • jnyr5478
    @cPanelLauren sorry for the very late reply. Enabling Global DCV Passthrough did resolve this problem.
    0

Please sign in to leave a comment.