博客园 首页 私信博主 显示目录 隐藏目录 管理

ES访问遇到sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

cmd命令cd到jre/bin目录下

输入命令keytool -import -alias 别名 -keystore cacerts -file ‪C://certs//elasticsearch//elasticsearch.crt

密码changeit

查看证书

keytool -list -keystore cacerts -alias 别名

删除证书

keytool -delete -alias 别名 -keystore C:\jdk1.7.0_141\jre\lib\security\cacerts

posted @ 2020-02-29 13:51  MrSharp  阅读(2127)  评论(0)    收藏  举报