请求在没有卷曲标志的情况下容器化开发搜索
I can interact with my open search docker container via curl -XGET https://localhost:9200 -u 'admin:admin' --insecure
but no use when I want to automate requests to it.. 。
命令:
curl -XGET https://localhost:9200
error:
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.
我确实进入了该链接,而不是解决方案,只是一种解释,将我扔进了我刚才能够离开的兔子洞。
可怕的是,这以前发生在我身上,我修复了它,但它不在码头容器上,我不记得我如何修复它。
I can interact with my open search docker container via curl -XGET https://localhost:9200 -u 'admin:admin' --insecure
but no use when I want to automate requests to it... I need to be able to access it, even via HTTP is fine (not secure meaning not HTTPS).
command:
curl -XGET https://localhost:9200
error:
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.
I did go into that link, not a solution, just an explanation that threw me into a rabbit hole I was able to get out just now.
The awful thing is that this happened to me before and I fixed it, but it was not on a docker container and I don't remember how I fixed it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
disable Security 在您的Dockerfile中:
您可以 disable Security > 通过http:// localhost:9200之后。我这样做是为了设置我的数据,然后将/usr/share/opensearch/data加载到具有安全性的其他容器中。
You can disable security in your Dockerfile then:
Your OpenSearch will be accessible via http://localhost:9200 after. I do this to setup my data, and then load /usr/share/opensearch/data in an other container set up with security.