Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15955

cURL no longer contains a default CA Cert package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Libraries
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      cURL has changed in newer versions of PHP - it no longer contains a default CA cert bundle, so SSL connections fail 100% of the time unless the user updates the CA package stored locally. - under *nix based servers this is very simple, however win32 windows doesn't work as it needs to have a specified path for the CA certs.

      can we please something like the code mentioned in this post to the curl calls in filelib?
      http://moodle.org/mod/forum/discuss.php?d=98199#p453614

      maybe checking to see if a file called "ca-certificates.crt" exists in the php dir and if SSL is being used, and adding the extra line of code,
      or storing the path in somewhere like $CFG->CApath and then using it if it's set.

      would be good if we could get this in 1.9stable and HEAD if possible?

      thanks!

      Dan

        Attachments

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            danmarsden Dan Marsden
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: