campaignmonitor / createsend-php

A PHP library for the Campaign Monitor API
http://campaignmonitor.github.io/createsend-php
Other
285 stars 106 forks source link

How can I remove SSL verification in dev mode? #93

Open picks44 opened 5 years ago

picks44 commented 5 years ago

Is there a method to do that? Today I have this issue when working lacally :

Uncaught CurlException: Error making request with curl_error: SSL certificate problem: unable to get local issuer certificate in C:\laragon\www\DESsandbox\campaignMonitorApi\createsend-php\class\transport.php:174

ChristopherNowlan commented 4 years ago

@picks44 Did you manage to resolve this?

picks44 commented 4 years ago

@ChristopherNowlan I can't remember so I guess I did or found a workaround!

ChristopherNowlan commented 4 years ago

@picks44 no worries. If you remember let me know.

ChristopherNowlan commented 4 years ago

For anyone else that needs help with this I changed line 140 of transport.php from this curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); to this so that I can test without a ssl curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

picks44 commented 4 years ago

@ChristopherNowlan, now I have encoutered this issue again on a new project :) Where did you set the cUrl option?