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}
相关推荐
Violet_Stray13 分钟前
docker里rtsp推流+同一个docker接受流进行部署
运维·docker·容器
喵叔哟32 分钟前
重构代码之用多态替代条件逻辑
java·服务器·重构
Charary38 分钟前
第23天Linux下常用工具(二)
linux·运维·服务器
修修修也44 分钟前
【Linux】进程间通信
linux·运维·服务器·操作系统·进程通信
猫头鹰~1 小时前
linux文件
linux·运维·服务器
StudyHappiness1 小时前
MongoDB新版本,单节点安装
linux·运维·mongodb·kylin
微服务商城技术分享1 小时前
通过Docker实现openGauss的快速容器化安装
运维·docker·容器
编程墨客2 小时前
第03章 文件编程
linux·运维·服务器
命里有定数2 小时前
windows工具 -- 使用rustdesk和云服务器自建远程桌面服务, 手机, PC, Mac, Linux远程桌面 (简洁明了)
linux·运维·服务器·windows·ubuntu·远程工作
cleveryuoyuo2 小时前
进程的程序替换exec*函数和shell实现
linux·服务器