Getting update info results in RequestException : cURL error 60: SSL certificate problem: unable to get local issuer certificate

Created on 21 January 2016, almost 9 years ago
Updated 3 July 2023, over 1 year ago

Problem/Motivation

Since update drupal core version 8.0.2, the update module displays : Recovering update available failed.

Error message in "Recent log entries":

GuzzleHttp\Exception\RequestException : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) dans GuzzleHttp\Handler\CurlFactory::createRejection() (ligne 187 de D:\wamp\www\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php).

Local environement:
Wampserver 3.0.0
Apache 2.4.17
PHP 5.6.15
MySQL 5.7.9

Solution

The reason is a PHP configuration issue. Read https://www.drupal.org/node/2481341 for the solution. I have suggested this to be added to the system requirements .

💬 Support request
Status

Fixed

Version

8.0 ⚰️

Component
Update 

Last updated 3 days ago

  • Maintained by
  • 🇺🇸United States @tedbow
  • 🇺🇸United States @dww
Created by

🇫🇷France thib France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇬Egypt elzahaby

    if this error is happening locally and the recommended solution isn't working you can ignore ssl certification errors by putting this line into the settings.local.php

    $settings['http_client_config']['verify'] = FALSE;

  • 🇮🇳India abhishek@kumar

    Fixing cURL and SSL certificate issue in Drupal 10.3.5 on MAMP

    Download SSL Certificate: To ensure secure communication between your Drupal site and external services (like APIs), we need to configure cURL with an SSL certificate.

    Download the latest cacert.pem file from the official cURL website: https://curl.haxx.se/ca/cacert.pem
    Move SSL Certificate to MAMP Server: After downloading, place the cacert.pem file in your MAMP server’s PHP directory.

    Example path:
    C:\MAMP\bin\php\cacert.pem

    Configure PHP to Use SSL Certificate: To let PHP use this certificate, we need to edit the php.ini file. This file controls the configuration of PHP on your MAMP server.

    Locate the php.ini file in your MAMP PHP folder.
    Example path:
    C:\MAMP\bin\php\php.ini

    Open the php.ini file and add the following lines at the bottom:
    curl.cainfo="C:\MAMP\bin\php\cacert.pem"
    openssl.cafile = "C:\MAMP\bin\php\cacert.pem"

    This tells PHP and cURL to use the downloaded SSL certificate for secure communications.

    Restart MAMP: After saving the changes to the php.ini file, restart your MAMP server for the new settings to take effect.

    By following these steps, your MAMP server will be properly configured to handle SSL connections, ensuring Drupal 10.3.5 can securely connect to external services.

  • 🇺🇸United States brad.bulger

    we are getting this cURL error in relation to validating a remote video URL at youtube.com on a site running in a fake domain (the domain is only defined on our local hosts files at the server's IP). nothing suggested here is making a difference. trying to fetch the same URL that Drupal is trying to fetch gives this error from wget:

    ERROR: cannot verify www.youtube.com's certificate, issued by ‘emailAddress=support@fortinet.com,CN=FG441FTK21900407,OU=Certificate Authority,O=Fortinet,L=Sunnyvale,ST=California,C=US’:
      Unable to locally verify the issuer's authority.
    
  • 🇺🇸United States brad.bulger

    to follow up, in our case, we got that same curl 60 error as a result of a firewall (from Fortinet, hence their cert showing up) that was blocking the domain it was trying to reach. nothing to do with certificates at all, only a misleading symptom.

Production build 0.71.5 2024