NOV 15 2016

Unknown SSL protocol error in connection to connect20.magentocommerce.com:443

Problem description

The following error reported in Magento Connect manager or during manual invokation of mage command in CLI on upgrades or extension installation:


Unknown SSL protocol error in connection to connect20.magentocommerce.com:443

Cause

downloader/lib/Mage/HTTP/Client/Curl.php now requires newer SSL protocol support with functions added in PHP5.5 (TLSv1.1 or newer) can not connect to repo server with cURL libs available for PHP on your host.

Solution

Ask your hosting provider to bring TLSv1.1, TLSv1.2 support in cURL libs of PHP and upgrade PHP to newer version. In the meantime, you can proceed with the extension installation or upgrades by lowering SSL requirements in downloader/lib/Mage/HTTP/Client/Curl.php:

--- downloader/lib/Mage/HTTP/Client/Curl.php
+++ downloader/lib/Mage/HTTP/Client/Curl.php
@@ -380,7 +380,7 @@
          * @link http://php.net/manual/ru/function.curl-setopt.php
          */
 
-        $this->curlOption(CURLOPT_SSLVERSION, 1);
+        $this->curlOption(CURLOPT_SSLVERSION, 0);
         $this->getCurlMethodSettings($method, $params, $isAuthorizationRequired);
 
         if(count($this->_headers)) {

This way should make cURL use one of older (that is available on your host) SSL protocols for connection to repo servers.

Posted in: Magento Connect

Unknown SSL protocol error in connection to connect20.magentocommerce.com:443
0 votes, 0.00 avg. rating (0% score)