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

author details
AdiPie
24th Dec 2020
2 mins read
Image
ssl certificate curl 60 error

 If you had implemented Auth0 SSO in your website and then you discover the below error

Auth0 SSO Error: There was a problem logging you in, sorry for the inconvenience

If you have a Windows server and victimization XAMP, therefore please notice the steps below for a breakdown of the issue:

  • First, download and extract the cacert.pem file which consists of a clean file format/data.

URLhttps://curl.haxx.se/docs/caextract.html

  • Import the above-attached file in the below directory:  

C:\xampp\php\extras\ssl\cacert.pem

  • Then, put the below line of code in the php.ini configuration file.

php.ini file path: C:\xampp\php\php.ini


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"

  • Please restart your webserver/apache

With the above steps, you discover that the problem is resolved.