filestack-php icon indicating copy to clipboard operation
filestack-php copied to clipboard

disable guzzlehttp ssl check

Open ledahu opened this issue 6 years ago • 1 comments

hi

i need to crontab a local batch upload . i get "Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate"

because of guzzle ssl "verify"=true

$client = new FilestackClient('mykey"); $client .... How-to-force-no-ssl-check ? (verify = false)

any idea ?

ledahu avatar Jul 05 '19 14:07 ledahu

SOLVED

$guzzleClient = new \GuzzleHttp\Client(array( 'curl' => array( CURLOPT_SSL_VERIFYPEER => false, ), )); $client = new FilestackClient('mykey' ,null,$guzzleClient);

ledahu avatar Jul 05 '19 14:07 ledahu