cancel
Showing results for 
Search instead for 
Did you mean: 

Error when installing extensions: unknown cipher list

Error when installing extensions: unknown cipher list

ok, i prove but i problem after installing magento 1.92 

 

i attach my curl.php section (you help me! tanks)

 

/**
* Make request
* @param string $method
* @param string $uri
* @param array $params
* @return null
*/
protected function makeRequest($method, $uri, $params = array())
{
$this->_ch = curl_init();
$this->curlOption(CURLOPT_URL, $uri);

if($method == 'POST') {
$this->curlOption(CURLOPT_POST, 1);
$this->curlOption(CURLOPT_POSTFIELDS, http_build_query($params));
} elseif($method == "GET") {
$this->curlOption(CURLOPT_HTTPGET, 1);
} else {
$this->curlOption(CURLOPT_CUSTOMREQUEST, $method);
}

if(count($this->_headers)) {
$heads = array();
foreach($this->_headers as $k=>$v) {
$heads[] = $k.': '.$v;
}
$this->curlOption(CURLOPT_HTTPHEADER, $heads);
}

if(count($this->_cookies)) {
$cookies = array();
foreach($this->_cookies as $k=>$v) {
$cookies[] = "$k=$v";
}
$this->curlOption(CURLOPT_COOKIE, implode(";", $cookies));
}

if($this->_timeout) {
$this->curlOption(CURLOPT_TIMEOUT, $this->_timeout);
}

if($this->_port != 80) {
$this->curlOption(CURLOPT_PORT, $this->_port);
}

//$this->curlOption(CURLOPT_HEADER, 1);
$this->curlOption(CURLOPT_RETURNTRANSFER, 1);
$this->curlOption(CURLOPT_HEADERFUNCTION, array($this,'parseHeaders'));

//if(isset($var)){$this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');}
//$this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');

$this->curlOption(CURLOPT_SSL_VERIFYHOST, 2);
if(isset($var)){

$this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');

}
$this->curlOption(CURLOPT_SSLVERSION,CURL_SSLVERSION_TLSv1);

 

if(count($this->_curlUserOptions)) {
foreach($this->_curlUserOptions as $k=>$v) {
$this->curlOption($k, $v);
}
}

$this->_headerCount = 0;
$this->_responseHeaders = array();
$this->_responseBody = curl_exec($this->_ch);
$err = curl_errno($this->_ch);
if($err) {
$this->doError(curl_error($this->_ch));
}
curl_close($this->_ch);
}

/**
* Throw error excpetion
* @param $string
* @throws Exception
*/
public function doError($string)
{
throw new Exception($string);
}

 

2 REPLIES

Re: Error when installing extensions: unknown cipher list

Hi @Dylogi973

 

Can you please elaborate the issue you are having?



Problem solved? Click Accept as Solution!

Re: Error when installing extensions: unknown cipher list

I have made all the changes to the file curl.php I read in the forum

but I still have problems

I can not install additional modules

This is my current curl.php

    / **
     * Make request
     *param String $ method
     *param String $ uri
     *param Array $ params
     * @ Return null
     * /
    protected function makeRequest ($ method, $ uri, $ params = array ())
    {
        $ This -> _ curl_init ch = ();
        $ This-> curlOption (CURLOPT_URL, $ uri);

        if ($ method == 'POST') {
            $ This-> curlOption (CURLOPT_POST, 1);
            $ This-> curlOption (CURLOPT_POSTFIELDS, http_build_query ($ params));
        } Elseif ($ method == "GET") {
            $ This-> curlOption (CURLOPT_HTTPGET, 1);
        } Else {
            $ This-> curlOption (CURLOPT_CUSTOMREQUEST, $ method);
        }

        if (count ($ this -> _ headers)) {
            $ Heads = array ();
            foreach ($ this -> _ headers as $ k => $ v) {
                $ Heads [] = $ k. ':'. $ V;
            }
            $ This-> curlOption (CURLOPT_HTTPHEADER, $ heads);
        }

        if (count ($ this -> _ cookies)) {
            $ Cookies = array ();
            foreach ($ this -> _ cookies as $ k => $ v) {
                $ Cookies [] = "$ k = $ v";
            }
            $ This-> curlOption (CURLOPT_COOKIE, implode ("", $ cookie));
        }

        if ($ this -> _ timeout) {
            $ This-> curlOption (CURLOPT_TIMEOUT, $ this -> _ timeout);
        }

        if ($ this -> _ port! = 80) {
            $ This-> curlOption (CURLOPT_PORT, $ this -> _ port);
        }

        // $ This-> curlOption (CURLOPT_HEADER, 1);
        $ This-> curlOption (CURLOPT_RETURNTRANSFER, 1);
        $ This-> curlOption (CURLOPT_HEADERFUNCTION, array ($ this, 'parseHeaders'));

        // If (isset ($ var)) {$ this-> curlOption (CURLOPT_SSL_CIPHER_LIST, 'TLSv1');}
        // $ This-> curlOption (CURLOPT_SSL_CIPHER_LIST, 'TLSv1');
        
        $ This-> curlOption (CURLOPT_SSL_VERIFYHOST, 2);
        if (isset ($ var)) {$ this-> curlOption (CURLOPT_SSL_CIPHER_LIST, 'TLSv1');}
        $ This-> curlOption (CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);

        if (count ($ this -> _ curlUserOptions)) {
            foreach ($ this -> _ curlUserOptions as $ k => $ v) {
                $ This-> curlOption ($ k, $ v);
            }
        }

        $ This -> _ headerCount = 0;
        $ This -> _ responseHeaders = array ();
        $ This -> _ responseBody curl_exec = ($ this -> _ ch);
        $ Err = curl_errno ($ this -> _ ch);
        if ($ err) {
            $ This-> doError (curl_error ($ this -> _ ch));
        }
        curl_close ($ this -> _ ch);
    }