Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.9.4, 2.8.1
-
MOODLE_19_STABLE, MOODLE_28_STABLE
-
MOODLE_29_STABLE
-
MDL-18183-master -
-
BACKEND Sprint 19
-
Small
Description
In mnet/xmlrpc/client.php the settings for the curl call include the two settings....
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
This allows it to work with self-signed certificates if the other end of the connection is running https across the whole site. This is fine, but it should perhaps be an option as this potentially reduces security by, effectively, accepting any certificate.
We had the oposite end of this discussion in Mahara where the decision was to enable this with an option in config.php. With Moodle having these, there is a potential regression of course.