Jump to content

Automated Task: Starting SSL Sync


PlotHost

Recommended Posts

  • WHMCS Support Manager

Hi all,

This is related to the new SSL Monitoring feature in 7.7: https://docs.whmcs.com/SSL_Monitoring

If the task is not completing daily, please start your troubleshooting with these guides:

Link to comment
Share on other sites

  • 1 year later...

I managed to fix this by setting the permissions of cron.php to 755

I also made sure that the cron command was using the correct version of PHP

/opt/cpanel/ea-php73/root/usr/bin/php -q /home/PATH/TO/crons/cron.php all -F

n the above example, replace “ea-php99” with the PHP version assigned to the domain you wish to use. Look in the MultiPHP Manager for the actual PHP version assigned to a domain.

Link to comment
Share on other sites

23 hours ago, jackshreeve said:

I managed to fix this by setting the permissions of cron.php to 755

I also made sure that the cron command was using the correct version of PHP

/opt/cpanel/ea-php73/root/usr/bin/php -q /home/PATH/TO/crons/cron.php all -F

n the above example, replace “ea-php99” with the PHP version assigned to the domain you wish to use. Look in the MultiPHP Manager for the actual PHP version assigned to a domain.

Actually I've found out the cron command should not have the -F command. Otherwise this fix worked for me.

e.g.

/opt/cpanel/ea-php73/root/usr/bin/php -q /home/PATH/TO/crons/cron.php all

Link to comment
Share on other sites

I receive the daily report which shows SSL is synced however when I go to the SSL Monitoring page, it hasn't updated the expiry dates for all the SSL. 

Some of the last update dates show over a month ago. 

And when I click the Revalidate SSL Status button, it refreshes the SSL dates but not for all of them. Refreshing the page reverts it back to old dates.

Link to comment
Share on other sites

  • 3 years later...

@baymax did you ever manage to resolve this issue?  We are currently running "cron.php do --SslSync -vvv --email-report=1" in a loop to sync all SSL statuses  but are only seeing expired expiry dates, while random checks on the actual websites using "curl -I" from the same server tells us that the expiry date is in the future.

SELECT updated_at,expiry_date FROM tblsslstatus ORDER BY expiry_date;
| 2021-11-23 14:41:43 | 2022-08-05 23:59:59 |
| 2024-02-14 13:52:25 | 2022-08-11 23:59:59 |
| 2023-07-24 08:25:45 | 2022-08-11 23:59:59 |
| 2023-07-24 08:25:01 | 2022-08-11 23:59:59 |
| 2022-03-02 09:20:58 | 2022-08-17 23:59:59 |
| 2024-02-14 14:06:10 | 2022-09-15 23:59:59 |

and

curl -I --max-time 10 -v https://$DOMAIN | grep "expire date"
* 	expire date: Apr 28 19:16:47 2024 GMT

 

Link to comment
Share on other sites

54 minutes ago, Mark said:

@baymax did you ever manage to resolve this issue?  We are currently running "cron.php do --SslSync -vvv --email-report=1" in a loop to sync all SSL statuses  but are only seeing expired expiry dates, while random checks on the actual websites using "curl -I" from the same server tells us that the expiry date is in the future.

SELECT updated_at,expiry_date FROM tblsslstatus ORDER BY expiry_date;
| 2021-11-23 14:41:43 | 2022-08-05 23:59:59 |
| 2024-02-14 13:52:25 | 2022-08-11 23:59:59 |
| 2023-07-24 08:25:45 | 2022-08-11 23:59:59 |
| 2023-07-24 08:25:01 | 2022-08-11 23:59:59 |
| 2022-03-02 09:20:58 | 2022-08-17 23:59:59 |
| 2024-02-14 14:06:10 | 2022-09-15 23:59:59 |

and

curl -I --max-time 10 -v https://$DOMAIN | grep "expire date"
* 	expire date: Apr 28 19:16:47 2024 GMT

 

We figured it out.  It's an issue with curl 7.29.0 on CentOS 7.9. You need at least curl 7.34.0 to be able to use CURLOPT_CERTINFO which is used in the getCertificate($domain) function which is used when SslSync is called.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated