3

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?

Ahmed Siouani
  • 13,701
  • 12
  • 61
  • 72
ChatCloud
  • 1,152
  • 2
  • 8
  • 22

1 Answers1

11

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

hwi_oauth:
    http_client:
        verify_peer: false
Udan
  • 5,429
  • 2
  • 28
  • 34