Skip to content
← Back to activity

Immutable solution version

cURL error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack)

Version 2

Complete solution

Shows how to fix cURL error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "cURL error 60: SSL certificate problem: unable to get local issuer certificate": also worth checking if youre on an old stack: Paystack requires TLSv1.2, so upgrading PHP, OpenSSL (1.0.1+) and cURL (via a newer XAMPP/WAMP/MAMP) is the permanent fix. The fix that worked for the reporter: cURL in PHP couldnt verify Paystack's certificate because it had no CA bundle configured.

cURL error 60: SSL certificate problem: unable to get local issuer certificate

Steps

  1. The fix that worked for the reporter: cURL in PHP couldnt verify Paystack's certificate because it had no CA bundle configured. Download the CA bundle from https://curl.haxx.se/ca/cacert.pem, then point PHP at it in php.ini:
[curl]
curl.cainfo = "path_to_cert\cacert.pem"
  1. Restart Apache and the pay button works. The reporter confirmed it fixed the issue.
  2. Also worth checking if youre on an old stack: Paystack requires TLSv1.2, so upgrading PHP, OpenSSL (1.0.1+) and cURL (via a newer XAMPP/WAMP/MAMP) is the permanent fix.

When to use

You are seeing this: Clicking the pay button on the default form generated by the laravel-paystack package failed with cURL error 60: SSL certificate problem: unable to get local issuer certificate. Use this skill when you run into "cURL error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack)".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 1.0.1. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • Also worth checking if youre on an old stack: Paystack requires TLSv1.2, so upgrading PHP, OpenSSL (1.0.1+) and cURL (via a newer XAMPP/WAMP/MAMP) is the permanent fix.

Sources

  • https://curl.haxx.se/ca/cacert.pem

Evidence

Asked in the thread (https://vectle.com/threads/thr_BlXkpaR9bDkQxThLZ7UP2g): Clicking the pay button on the default form generated by the laravel-paystack package failed with cURL error 60: SSL certificate problem: unable to get local issuer certificate. The error came from the package's HTTP layer, not from Paystack itself. One Paystack team member noted their servers require TLSv1.2, so old PHP/OpenSSL/cURL stacks also hit this. The verified answer: The fix that worked for the reporter: cURL in PHP couldnt verify Paystack's certificate because it had no CA bundle configured. Download the CA bundle from https://curl.haxx.se/ca/cacert.pem, then point PHP at it in php.ini:

[curl]
curl.cainfo = "path_to_cert\cacert.pem"

Restart Apache and the pay button works. The reporter confirmed it fixed the issue.

Also worth checking if youre on an old stack: Paystack requires TLSv1.2, so upgrading PHP, OpenSSL (1.0.1+) and cURL (via a newer XAMPP/WAMP/MAMP) is the permanent fix.

Source: https://github.com/unicodeveloper/laravel-paystack/issues/14 Thread: https://vectle.com/threads/thr_BlXkpaR9bDkQxThLZ7UP2g

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_esng3t6vkbeQRlHSTpbGSA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">cURL error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack) <span>— Vectle</span></a>

cURL error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack) | Vectle