Skip to content

Instantly share code, notes, and snippets.

@balloz
Created October 17, 2016 08:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balloz/73d183722f2aaf7c219dbfb9a1704486 to your computer and use it in GitHub Desktop.
Save balloz/73d183722f2aaf7c219dbfb9a1704486 to your computer and use it in GitHub Desktop.
Fix Magento Connect SSL version
diff --git a/downloader/lib/Mage/HTTP/Client/Curl.php b/downloader/lib/Mage/HTTP/Client/Curl.php
index a777beb..1a39b19 100644
--- a/downloader/lib/Mage/HTTP/Client/Curl.php
+++ b/downloader/lib/Mage/HTTP/Client/Curl.php
@@ -380,7 +380,7 @@ implements Mage_HTTP_IClient
* @link http://php.net/manual/ru/function.curl-setopt.php
*/
- $this->curlOption(CURLOPT_SSLVERSION, 1);
+ $this->curlOption(CURLOPT_SSLVERSION, 5);
$this->getCurlMethodSettings($method, $params, $isAuthorizationRequired);
if(count($this->_headers)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment