从 sumo 逻辑下载数据时 curl 失败

curl failed when downloading data from sumo logic

我正在尝试使用 api 下载数据。我的代码是:

curl -u "accessID***:accessKey***" -X GET https://api.au.sumologic.com/api/v1/collectors?limit=2   (just follow the example from https://help.sumologic.com/APIs/Search-Job-API/About-the-Search-Job-API). But I have got the error:

Curl:(60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. ...

图片:

我试图阅读来自 https://curl.haxx.se/docs/sslcerts.html 的信息。但这是我第一次使用 api 和 curl。我真的不明白如何解决这个问题。

我 运行 此代码在 Windows 服务器上。我从 https://curl.haxx.se/download.html 下载 curl。版本是

Windows 64 bit 7.61.1 binary the curl project.

改用 http://curl.haxx.se/docs/sslcerts.html https://curl.haxx.se/docs/sslcerts.html 您将避免 SSL 要求。