Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony HWIOAuthBundle, how to configure cURL?

On the development machine we have the default certificates that comes with apache, when we trying to authenticate with facebook, HWIOAuthBundle fires an exception:

SSL certificate problem: unable to get local issuer certificate

It's clear that in plain PHP we need to set an option CURLOPT_SSL_VERIFYPEER = false, and pass to curl_setopt_array(...).

How can we define these options for Symfony or for HWIOAuthBundle?

like image 395
ChatCloud Avatar asked Jan 25 '26 01:01

ChatCloud


1 Answers

Add following options under "hwi_oauth" and you should be fine.

hwi_oauth:
    http_client:
        verify_peer: false
like image 179
Udan Avatar answered Jan 27 '26 20:01

Udan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!