filestack / filestack-php

Official PHP SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
56 stars 32 forks source link

disable guzzlehttp ssl check #42

Open ledahu opened 5 years ago

ledahu commented 5 years ago

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 commented 5 years ago

SOLVED

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