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

PHP 5.6 and HTTPS #14

Open
TeLiXj opened this issue Dec 18, 2015 · 2 comments
Open

PHP 5.6 and HTTPS #14

TeLiXj opened this issue Dec 18, 2015 · 2 comments

Comments

@TeLiXj
Copy link

TeLiXj commented Dec 18, 2015

If you use this bundle with this combination don't work because SSL streams have been changed in PHP 5.6. You can read more in http://php.net/manual/en/migration56.openssl.php. In the bottom of this page you have the solution: disable verify peer.

<?php
            $streamContext = stream_context_create([
                'ssl' => [
                    'verify_peer'      => false,
                    'verify_peer_name' => false
                ]
            ]);
            $contents = file_get_contents('https://url', false, $streamContext);
?>

If you like I can create a pull request adding this to CacheClearerService, but not just now because I don't have time

@kbond
Copy link
Contributor

kbond commented Dec 18, 2015

You can add this to your config.yml:

accelerator_cache:
    curl_opts:
        CURLOPT_SSL_VERIFYHOST: false
        CURLOPT_SSL_VERIFYPEER: false

@kbond
Copy link
Contributor

kbond commented Dec 18, 2015

Oh, I misread, you aren't using curl... Is using curl an option?

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