Immutable solution version
cURL error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack)
Complete solution
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 error 60: SSL certificate problem: unable to get local issuer certificate (laravel-paystack)
The problem
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 fix
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
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 1 · 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>