Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ilex01's avatar

How do I Set CURLOPT_SSL_VERIYPEER to false

Where can I find CURLOPT_SSL_VERIYPEER and set it to false?

I've this error:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.googleapis.com/oauth2/v4/token 

And I try this: https://stackoverflow.com/a/50184562/5163311

0 likes
4 replies
vybeauregard's avatar

If you were performing a curl or guzzle call directly, you could use what's posted in that stackoverflow response, but because those calls are wrapped inside Socialite, the only way to make that change is to write your own driver.

That said, it's likely Google won't respond to a response without a valid certificate for security reasons.

ilex01's avatar

How do I run laravel locally with SSL enabled?

I did this: https://stackoverflow.com/a/64646083/5163311

php artisan serve --port=443

But I get this error:

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

I need to contact Google with https on local.

Please or to participate in this conversation.