0

我正在尝试使用 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证书问题:无法获取本地颁发者证书更多详细信息:https ://curl.haxx.se/docs/sslcerts.html

curl 无法验证服务器的合法性,因此无法建立与它的安全连接。...

图片:

在此处输入图像描述

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

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

Windows 64 位 7.61.1 二进制 curl 项目。

4

1 回答 1

1

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

于 2018-10-15T05:48:25.723 回答