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}
相关推荐
71777714 分钟前
2026 中国企业 DevOps 平台怎么选:从排名诉求回到可核验的选型维度
运维·devops
信安IT租赁42 分钟前
小公司服务器的自启动脚本:用 systemd 做成服务,开机自动跑
linux·运维·服务器
东鹏特饮1 小时前
Docker 容器技术详细指南
运维·docker·容器
南棱笑笑生1 小时前
20261127在RK3576的Android14系统下适配2个以太网卡RTL821F-CG【无外部晶振模式】
linux·服务器·数据库·驱动开发
我命由我123451 小时前
Excel - Excel 固定列,滚动时该列始终可见
运维·学习·职场和发展·excel·职场发展·运维开发·学习方法
Julien20041 小时前
管理机密(二)
linux·运维·服务器·学习方法
赤生云电竞2 小时前
GPU云电脑串流链路优化实践:从40ms到15ms的延迟拆解与调优
服务器·电脑·php
AI技术新视界2 小时前
Qwen4-35B-A3B 已发布,社区第一波实测数据已出炉
服务器·人工智能·llm
中科米堆2 小时前
航空航天自动化 3D 尺寸检测方案|精密零部件三维扫描形位公差检测-CASAIM
运维·3d·自动化
Pin_Qing2 小时前
当旗舰模型挂上 Flash 的价签:MiniMax M4 的定价逻辑与工程账本
服务器·开发语言·网络·人工智能·程序人生