CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN

执行命令:

复制代码
C:\Users\Administrator>curl --cacert %ES_HOME%\config\certs\http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200

报错提示:

复制代码
curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
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.

直接访问https://localhost:9200/ ,正常

解决办法: 添加--insecure

复制代码
curl --cacert %ES_HOME%\config\certs\http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200 --insecure

OK,结果正常,不过我的终端不会像web一样的排版显示

复制代码
C:\Users\Administrator>curl --cacert %ES_HOME%\config\certs\http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200 --insecure
{"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401}
相关推荐
一人の梅雨1 分钟前
京东商品详情深度解析:从接口调用到商业价值挖掘的技术实现
服务器·数据库·php
养生技术人34 分钟前
Oracle OCP认证考试题目详解082系列第49题
运维·数据库·sql·oracle·database·开闭原则·ocp
wanhengidc1 小时前
云手机的挂机功能涉及到哪些内容
运维·服务器·网络·游戏·智能手机
菜鸟plus+1 小时前
ElasticSearch
运维·jenkins
努力的白熊嗨1 小时前
多台服务器文件共享存储
服务器·后端
西贝爱学习2 小时前
【软件】nginx-1.28.0安装包(Windows版)
运维·nginx
z202305082 小时前
linux之 remoteproc 内核实现源码分析
linux·运维·服务器
qq_1841776772 小时前
前端自动部署项目到服务器
服务器·前端·javascript
阿方索2 小时前
shell脚本
linux·运维
思考的笛卡尔2 小时前
Go语言实战:高并发服务器设计与实现
服务器·开发语言·golang