curl https://google.com/无法正常工作

时间:2017-12-26 20:45:14

标签: curl https

我正在尝试使用curl获取google.com的详细信息。但我收到以下错误。我在互联网上检查了很多帖子/博客,但无法使其发挥作用。

我希望它是安全的,所以我不能使用“-k”选项。

Os详情

root@ubuntu-amd64:/etc/ssl/certs# uname -a
Linux ubuntu-amd64 3.13.0-135-generic #184-Ubuntu SMP Wed Oct 18 11:55:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

错误

root@ubuntu-amd64:/etc/ssl/certs#
root@ubuntu-amd64:/etc/ssl/certs# curl  https://google.com/
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

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.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
root@ubuntu-amd64:/etc/ssl/certs#

0 个答案:

没有答案