Add option to have Curl run with insecure flags

We have an chat server that runs self signed certificates, to get alerts working I need to edit the Alert Transport php file to add:

curl_setopt ( $curl, CURLOPT_SSL_VERIFYPEER, false);

Every now and then, an update overnight will overwrite the alert transport file and stop the transport from working.

Could there be an option added to the config file? something like:

$config['curl][‘allow_insecure’] = true/false

Thanks
Jeff

Hi Jeff,

Could you please explain how you usually add the curl_setopt definition to the Alert Transport PHP file?
I can’t find the proper place to do it.

Thanks and regards,
Marcelo