SSL certificate verification


As I type the following command in the command line with my access token:
curl -H “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

I get:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here:

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn’t adequate, you can specify an alternate file
using the --cacert option.

I tried to kill of the certificate verification thing by running:
curl -k “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

But I got:
curl: (6) Could not resolve host: Authorization
“error”: “invalid_request”,
“error_description”: “The access token was not found”

I’m not sure why the cloud returned an invalid request error. I will appreciate any help on this point or any suggestion on how to fix the certificate issue.


I figured it out. The request should be formatted this way:

curl -H

This didn’t give me the certificate verification issue too.