- 🇪🇬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.pemConfigure 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.iniOpen 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.