Thanks @dan.woda
Fixed the issue by adding “CURLOPT_SSL_VERIFYPEER => false,” in the curl while calling Auth0 API.