NOV 15 2016

Unknown SSL protocol error in connection to

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


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.


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
-        $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
63 votes, 4.33 avg. rating (86% score)