filestack-php
filestack-php copied to clipboard
disable guzzlehttp ssl check
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 ?
SOLVED
$guzzleClient = new \GuzzleHttp\Client(array( 'curl' => array( CURLOPT_SSL_VERIFYPEER => false, ), )); $client = new FilestackClient('mykey' ,null,$guzzleClient);