Disabling SSL certification for development?

Your software
My Mautic version is: 5.1.1
My PHP version is: 8.1.29
My Database type and version is: 10.11.9-MariaDB

Your problem
My problem is:

I am developing a Drupal module that involves webhook sending on segment changes. My problem is that whenever the segment change is automated (like with segment filters) I get SSL cert errors. For development I want to turn SSL cert verification off.

I have successfully set the SSL verify to false when the segment changes are manual. For example in services.php in the CoreBundle and Client.php in webhookbundle:

But when the segment change is automated with logic (anything else than manually changing segments in the contacts UI) I still get the SSL certificate errors.

Does anyone have an idea where I could set the SSL cert check to be false for automated segment change webhooks as well?