Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用aws命令获取curl:(60)SSL证书错误_Curl_Ssl_Amazon S3 - Fatal编程技术网

使用aws命令获取curl:(60)SSL证书错误

使用aws命令获取curl:(60)SSL证书错误,curl,ssl,amazon-s3,Curl,Ssl,Amazon S3,当我在终端上使用aws ls myBucket或aws mkdir newBucket访问我的S3时,我得到: curl: (60) SSL certificate problem: Invalid certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" o

当我在终端上使用aws ls myBucket或aws mkdir newBucket访问我的S3时,我得到:

curl: (60) SSL certificate problem: Invalid certificate chain
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.
我不熟悉卷曲,如何解决这个问题?我的操作系统是OSX 10.9.2


谢谢

您的bucket是否包含点,例如
com.example.mybucket
?我猜你用的是Tim Kay的

如果是,则问题与此客户端在幕后执行的操作有关,例如
GEThttps://com.example.mybucket.s3.amazonaws.com/...

注意:您可以按如下方式验证:
aws--curl options=“-v”ls com.example.mybucket 2>&1|grep“即将连接”

这种虚拟主机样式的请求会导致错误

因此,我强烈建议您使用官方的。使用它非常简单:

aws s3 ls com.example.mybucket

或者,穷人解决方案是关闭curl详述的证书验证,如下所示:

aws --curl-options="-k" ls com.example.mybucket