src/Guzzle/Stream/PhpStreamRequestFactory.php
protected function addSslOptions(RequestInterface $request)
    {
        if ($request->getCurlOptions()->get(CURLOPT_SSL_VERIFYPEER)) {
            $this->setContextValue('ssl', 'verify_peer', true, true);
            if ($cafile = $request->getCurlOptions()->get(CURLOPT_CAINFO)) {
                $this->setContextValue('ssl', 'cafile', $cafile, true);
            }
        } else {
            $this->setContextValue('ssl', 'verify_peer', false, true);
        }
    }
protected function addSslOptions(RequestInterface $request)
    {
        if ($request->getCurlOptions()->get(CURLOPT_SSL_VERIFYPEER)) {
            $this->setContextValue('ssl', 'verify_peer', true, true);
            if ($cafile = $request->getCurlOptions()->get(CURLOPT_CAINFO)) {
                $this->setContextValue('ssl', 'cafile', $cafile, true);
            }
        } else {
            $this->setContextValue('ssl', 'verify_peer', false, true);
        }
    }
protected function addSslOptions ( RequestInterface $ request ) { if ( $ request -> getCurlOptions ( ) -> get ( CURLOPT_SSL_VERIFYPEER ) ) { $ this -> setContextValue ( 'ssl' , 'verify_peer' , true , true ) ; if ( $ cafile = $ request -> getCurlOptions ( ) -> get ( CURLOPT_CAINFO ) ) { $ this -> setContextValue ( 'ssl' , 'cafile' , $ cafile , true ) ; } } else { $ this -> setContextValue ( 'ssl' , 'verify_peer' , false , true ) ; } }
Add SSL options to the stream context

@param RequestInterface $request Request
Add SSL options to the stream context