This error message appears when curl is unable to verify the SSL/TLS certificate presented by the server.
To include the Authorization header in a cURL POST request in PHP, you can use the CURLOPT_HTTPHEADER option and pass it an array of headers like this: