Check this thread, probably the same issue.
Sep 16, 2021
10
Level 2
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I am trying to test make a call to an API and when I tried via postman with URL something like:
https://exampleapi.com/domains/availability?domain_names[]=dummydomains.com&domain_names[]=exampledomain.com
and two headers: Api-Request-Id, Api-Signature,
it does work, but now when I try using guzzle HTTP (laravel 8) as:
$response = Http::withHeaders([
'Api-Request-Id' => self::getRequestId(),
'Api-Signature' => self::getSignature(),
])->retry(3, 100)->post(config('services.reseller.api_url').'/domains/availability', [
'domain_names[]' => $domain_name
])->throw();
$body = $response->body();
dd($body);
It returning error as:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://exampleapi.com/domains/availability
I am testing it on localhost and I am using ubuntu 20.04.
Please or to participate in this conversation.