Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable guzzlehttp ssl check #42

Open
ledahu opened this issue Jul 5, 2019 · 1 comment
Open

disable guzzlehttp ssl check #42

ledahu opened this issue Jul 5, 2019 · 1 comment

Comments

@ledahu
Copy link

ledahu commented Jul 5, 2019

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
Copy link
Author

ledahu commented Jul 5, 2019

SOLVED

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant