Skip to content

Facebook SSL issue (Ubuntu) #4

@al3xdm

Description

@al3xdm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions