Code

-Updated jsonRPC calls - use ssl certs
[gosa.git] / gosa-core / include / class_jsonRPC.inc
index f0032365af1d0d4790494abd0177ee980b6d1bed..d9084f61c0913dba6c4bbcefb8668f69ddc754dd 100644 (file)
@@ -34,6 +34,7 @@ class jsonRPC {
         curl_setopt($this->curlHandler, CURLOPT_COOKIEFILE, 'cookiefile.txt'); 
         curl_setopt($this->curlHandler, CURLOPT_POST , TRUE);
         curl_setopt($this->curlHandler, CURLOPT_RETURNTRANSFER , TRUE);
+        curl_setopt($this->curlHandler, CURLOPT_SSL_VERIFYPEER, TRUE);
         curl_setopt($this->curlHandler, CURLOPT_HTTPHEADER , array('Content-Type: application/json'));
 
         // Try to login