[英]Curl 77 Error setting certificate file: http_ca.crt
I'm getting the error: Curl: 77 Error setting certificate file: http_ca.crt
我收到错误消息:
Curl: 77 Error setting certificate file: http_ca.crt
when running the line: curl --cacert http_ca.crt -u elastic https://localhost:9200
运行线路时:
curl --cacert http_ca.crt -u elastic https://localhost:9200
Can anyone explain why I'm getting this error and more importantly how to resolve it?谁能解释我为什么会收到这个错误,更重要的是如何解决它?
I'm attempting to follow the steps in the below link: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html我正在尝试按照以下链接中的步骤操作: https ://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
Edit:编辑:
The website says to use:该网站说使用:
docker cp es01:/usr/share/elasticsearch/config/certs/http_ca.crt .
from my understanding /user/share/elasticsearch/config/certs/http_ca.crt is the source file inside the docker container, however when going into the docker container using docker exec -it es01 bash
and using the ls
command there is no 'usr' folder????据我了解 /user/share/elasticsearch/config/certs/http_ca.crt 是 docker 容器内的源文件,但是当使用
docker exec -it es01 bash
并使用ls
命令进入 docker 容器时,没有 'usr ' 文件夹???? Did I miss a step?我错过了一步吗? Is the tutorial wrong?
教程错了吗?
Edit 2编辑 2
So I found out that docker cp es01:/usr/share/elasticsearch/config/certs/http_ca.crt .
所以我发现
docker cp es01:/usr/share/elasticsearch/config/certs/http_ca.crt .
does copy the file to my Home directory (still no clue how though since I couldn't find the 'usr' folder in the docker container).确实将文件复制到我的主目录(仍然不知道如何,因为我在 docker 容器中找不到“usr”文件夹)。 The original error of curl 77 is still there though.
curl 77 的原始错误仍然存在。
I figured out what was wrong...我发现出了什么问题...
I needed to give myself (root) permission to access the http_ca.crt file.我需要授予自己(root)访问 http_ca.crt 文件的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.