Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2609

Crowd Apache Connector (mod_authnz_crowd) fails when using https with self signed certificates

    XMLWordPrintable

Details

    Description

      The issue:

      when using self signed certificates for SSL, the apache mod_authnz_crowd module (Crowd Apache Connector) rejects the certificate regardless of configuration on the crowd server.

      The symptoms:

      when setting CrowdURL to a https value in apache you will receive a 500 error through the browser, looking in the apache error_log you will see: "Failed to send authentication request (CURLcode 60)" - this is returned by the CURL library that the module uses to make its connection, and error code 60 from the CURL library can be found here http://curl.haxx.se/libcurl/c/libcurl-errors.html
      />
      CURLE_SSL_CACERT (60) - Peer certificate cannot be authenticated with known CA certificates.

      A quick look at the CURL manual (http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTSSLVERIFYPEER) reveals: This option determines whether curl verifies the authenticity of the peer's certificate. A value of 1 means curl verifies; 0 (zero) means it doesn't.

      The Solution:

      See attached patch file, simple one liner fix.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cb55b8a8874b Moodle Sysadmin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified