GeeH / OAuth2

OAuth 2 Service Client for Zend Framework 2

Home Page:http://framework.zend.com/zf2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook SSL issue (Ubuntu)

al3xdm opened this issue · comments

commented

Thanks for putting this together, was really easy to get up and running.

We've hit an issue when running on Ubuntu, basically we have to set the "sslcapath" option in order to be able to connect to the Facebook Graph via SSL.

It's a generic setting for Zend Http Client, a couple of relevant discussions:

zendframework/zendframework#2223
http://framework.zend.com/issues/browse/ZF2-490

Basically, it's a one line fix. For us, we just added:

$httpClient->setOptions(array('sslcapath' => '/etc/ssl/certs'));

Before the $httpClient->send() call on line 166 in OAuth2.php . Unfortunately, there's no way to set this generically across all platforms (as discussed in those links). Would it be possible for you to allow settings for Zend\Http\Client to be passed as a config setting? That way when necessary people can change the SSL settings.

If it's already possible and I've missed it, just let me know. I found header settings but no client options.

Are you using a factory for your http client ?