我正在尝试使用 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 要求。
关于api - 从 sumo 逻辑下载数据时 curl 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52810380/