From: Michael Vogel Date: Sun, 1 Mar 2015 09:53:49 +0000 (+0100) Subject: We have to disable the SSL checks, otherwise the communication will fail for servers... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5cb6d6e53780055e816df3092207a193203ea59d;p=friendica.git We have to disable the SSL checks, otherwise the communication will fail for servers with self-signed certificates --- diff --git a/include/network.php b/include/network.php index ab7a9c6297..14497f01a2 100644 --- a/include/network.php +++ b/include/network.php @@ -34,6 +34,11 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_ )); } + // There are many servers out there that don't have valid certificates + // We have to disable the checks :-( + @curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false); + @curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false); + @curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); @curl_setopt($ch, CURLOPT_USERAGENT, $a->get_useragent());