|
发表于 2022-6-27 17:08:26
|
显示全部楼层
bash-5.1# curl http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp | jq -r '.data.t' | awk '{print substr($0,1,9)}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 109 100 109 0 0 658 0 --:--:-- --:--:-- --:--:-- 660
165632063
bash-5.1# curl -i -v https://api.io.mi.com
* Trying 0.0.0.0:443...
* Connected to api.io.mi.com (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
这是什么问题?
|
|