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

Facebook SSL issue (Ubuntu) #4

Open
al3xdm opened this issue Dec 3, 2012 · 1 comment
Open

Facebook SSL issue (Ubuntu) #4

al3xdm opened this issue Dec 3, 2012 · 1 comment

Comments

@al3xdm
Copy link

al3xdm commented Dec 3, 2012

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.

@Thinkscape
Copy link

Are you using a factory for your http client ?

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

2 participants