Article Last Updated: March 4, 2021 Show
Error Message:API call to helper/ping failed: SSL certificate problem: unable to get local issuer certificate. Error Explination:There are a number of reasons you might be seeing this error message. We will outline the two most common causes of this error and how to fix them: Local Host Installations using MAMP/XAMPP etc.Ways to fix this issue: 1) Download cacert.pem file from here: http://curl.haxx.se/docs/caextract.html If the above steps are too complicated, see the snippet below for a quick alternative workaround. Sites on Remote Hosts (Hostgator, Bluehost etc.)The cURL extension (which is used by WordPress for remote communication) must be able to verify the SSL certificate for any remote site that Easy Forms for Mailchimp by YIKES connects to. If your copy of WordPress is not equipped with a root CA bundle that can perform a lookup on the SSL certificate for Mailchimp you will most likely run into problems. Ways to fix this issue: 2) Alternatively, you can disable SSL verification. Since version 6.0.3.1 of Easy forms for Mailchimp by YIKES we’ve included a custom action hook for users who are facing this issue. Important: The following fix requires Easy Forms for Mailchimp by YIKES v6.0.3.1 or later. Add the following snippet of code to the bottom of your functions.php file: /* * Disable SSL Verify Host/SSL Verify Peer on CURL requests * only effects for Easy Forms for Mailchimp by YIKES */ function yikes_mailchimp_disable_ssl_verfiy_host_and_peer( $ch ) { curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); } add_action( 'yikes-mailchimp-api-curl-request', 'yikes_mailchimp_disable_ssl_verfiy_host_and_peer' );Please Read:If you are on a live server, and the above did not help resolve the issue – the only other option is to reach out to your hosting provider. This is not something we are able to resolve, as it lies at the server level. Para pengguna XAMPP mungkin sering mengalami masalah cURL error 60: SSL certificate problem: unable to get local issuer certificate. Eror seperti ini sering terjadi pada saat situs web kamu mencoba berkomunikasi dengan API eksternal melalui HTTPS dan sertifikat SSL pada server tidak terverifikasi atau tidak kamu konfigurasi dengan
baik. Masalah ini sering terjadi pada localhost, baik yang menggunakan WampServer maupun XAMPP. Lantas bagaimana cara memperbaikinya? Bagi pengguna XAMPP, kamu bisa mengikuti langkah-langkah berikut ini untuk memperbaiki masalah cURL error 60: SSL certificate problem: unable to get local issuer certificate. Total Time: 2 menit Unduh File Cacert.pemUnduh pada situs resmi cURL berkas cacert.pem di sini. Copy Berkas Cacert.pem Ke Direktori SSLPada komputer Windows, lokasinya bisa berada di C:\xampp\php\extras\ssl\cacert.pem Atau apabila kamu pengguna MacOS: /Applications/XAMPP/xamppfiles/etc/ssl.crt/cacert.pem Edit Berkas PHP.iniEdit file php.ini dan cari baris “curl.cainfo”. Jika tidak ada kamu bisa menambahkan baris baru di paling bawah curl.cainfo=C:\xampp\php\extras\ssl\cacert.pem curl.cainfo=D:\program\xampp\php\extras\ssl\cacert.pem curl.cainfo=/Applications/XAMPP/xamppfiles/etc/ssl.crt/cacert.pem Ingat struktur direktori di atas, tergantung dari sistem operasi dan lokasi file cacert.pem yang kamu copy-paste di awal (lihat nomor 1). Restart ApacheKamu bisa melakukan restart Apache agar perubahan di atas bisa dijalankan oleh sistem. Dengan cara di atas, seharusnya sudah bisa memperbaiki masalah cURL error 60 di web server localhost XAMPP kamu. Silahkan lanjutkan membaca artikel berikut ini: How to fix cURL error 60 SSL certificate problem?Solution:. Save the cacert. pem file anywhere on your system. Example: Since you're modifying both php. ... . Open your php.ini file. If your php.ini file doesn't have the curl.cainfo line, just add it to the end of the file, then add the file path where you saved your cacert.pem file: ... . Restart your server.. How do I fix curl 60 SSL certificate problem certificate has expired?The only solution to this problem is to get your host to update the root certificate on your server. So, you need to contact your server host and ask them to insert a new cacert. pem file into their servers, and configure it within their php.
Does Curl check SSL certificate?libcurl performs peer SSL certificate verification by default. This is done by using a CA certificate store that the SSL library can use to make sure the peer's server certificate is valid.
How install Cacert pem in php INI?2 Answers. Edit the /etc/ssl/certs/cacert. pem file, and add your new CA public key to the bottom.. Edit php. ini and add the line openssl. cafile=/etc/ssl/certs/cacert. pem to the top (or bottom).. Restart the webserver.. |