Background of the issue:
I am trying to set up WPML on my localhost WordPress site, which is currently under development. I am following the installation guide.
Symptoms:
I encountered a connection error: 'Unable to get data from service. Detailed error: cURL error 60: SSL certificate problem: self-signed certificate in certificate chain.'
Questions:
How can I resolve the cURL error 60 related to the SSL certificate?
Is there a way to bypass the SSL certificate issue on a localhost setup?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hi,
cURL error 60: SSL certificate problem: self-signed certificate in certificate chain is not specifically a WPML issue. It is a general cURL SSL verification issue that occurs when a PHP application (like WordPress) tries to make an HTTPS request but cannot verify the SSL certificate of the remote server.
The easiest solution is temporarily disabling SSL verification while working locally, then using a proper certificate when deploying to production.
If you just need a quick workaround for development, you can disable SSL verification in WordPress by adding this to your theme’s functions.php file, something like: