Elasticsearch 6.2.4 xpack白金版破解-仅供交流学习使用

以6.2.4版本为例,xpack作为es的插件。

1、反编译x-pack-core-6.2.4(/usr/local/es6/elasticsearch-6.2.4/plugins/x-pack/x-pack-core/x-pack-core-6.2.4.jar)
by luyten-0.5.4.exe github可以下载release

2、将LicenseVerifier、XPackBuild修改后重新编译

https://www.jianshu.com/p/55b5c5d3a89c
固定返回true、取消jar包验证
javac -cp "/usr/local/es6/elasticsearch-6.2.4/lib/elasticsearch-6.2.4.jar:/usr/local/es6/elasticsearch-6.2.4/lib/lucene-core-7.2.1.jar:/usr/local/es6/elasticsearch-6.2.4/plugins/x-
pack/x-pack-core/x-pack-core-6.2.4.jar" LicenseVerifier.java

javac -cp "/usr/local/es6/elasticsearch-6.2.4/lib/elasticsearch-6.2.4.jar:/usr/local/es6/elasticsearch-6.2.4/lib/lucene-core-7.2.1.jar:/usr/local/es6/elasticsearch-6.2.4/plugins/x-
pack/x-pack-core/x-pack-core-6.2.4.jar:/usr/local/es6/elasticsearch-6.2.4/plugins/x-pack/x-pack-core/netty-common-4.1.16.Final.jar:/usr/local/es6/elasticsearch-
6.2.4/lib/elasticsearch-core-6.2.4.jar" XPackBuild.java

编译的org.elasticsearch.license.LicenseVerifier.class org.elasticsearch.xpack.core.XPackBuild.class替换原来的class,重新压缩打包

rar放进去即可
三个节点替换x-pack-core-6.2.4这个jar

3、配置xpack SSL连接(白金版需要,所有节点都配置)
https://www.cnblogs.com/panwenbin-logs/p/9674845.html

4、重启es节点
es会自动重新分配shard

5、导入授权文件
{
"license": {
"uid": "1f742aa9-068b-48b6-8b36-c36ff3a39ed7",
"type": "platinum", # 修改授权为白金版本
"issue_date_in_millis": 1526860800000,
"expiry_date_in_millis": 2524579200999, #修改到期时间
"max_nodes": 100, # 修改最大节点数
"issued_to": "aa",
"issuer": "Web Form",
"signature":
"AAAAAwAAAA2+OXa0Aq7HFDzGSxl1AAABmC9ZN0hjZDBGYnVyRXpCOW5Bb3FjZDAxOWpSbTVoMVZwUzRxVk1PSmkxaktJRVl5MUYvUWh3bHZVUTllbXNPbzBUemtnbWpBbmlWRmRZb25KNFlBR2x0TXc2K2p1Y1VtMG1UQU9TRGZVSGRwaEJGU
jE3bXd3LzRqZ05iLzRteWFNekdxRGpIYlFwYkJiNUs0U1hTVlJKNVlXekMrSlVUdFIvV0FNeWdOYnlESDc3MWhlY3hSQmdKSjJ2ZTcvYlBFOHhPQlV3ZHdDQ0tHcG5uOElCaDJ4K1hob29xSG85N0kvTWV3THhlQk9NL01VMFRjNDZpZEVXeUt
UMXIyMlIveFpJUkk2WUdveEZaME9XWitGUi9WNTZVQW1FMG1DenhZU0ZmeXlZakVEMjZFT2NvOWxpZGlqVmlHNC8rWVVUYzMwRGVySHpIdURzKzFiRDl4TmM1TUp2VTBOUlJZUlAyV0ZVL2kvVk10L0NsbXNFYVZwT3NSU082dFNNa2prQ0Zsc
lZ4NTltbU1CVE5lR09Bck93V2J1Y3c9PQAAAQCi1V5EMmUXsTUKTeVHJugLj0daqCDI/eAALGG2FWAnE7p9F9ZcCNp2cybBmJ8okoxEIvsUVHUEv50eodAzsxR7qYra1j3pbjMY9BSl13DTVByhow
+ZbsXojEpxtXPv18Fd88iP7NcQDs/ERI3xQePDl4O3vB1qkpTxZiY+BC/YlCHF4VTz/sGq6PWvT0G7T4oUb91KIB42oFYNvS4SRkv4gvHOQWRkwdthA2dwpf2QNeH/5vMw9VWFV8x7hw
+8HTcqkf2De3TFq94VvhWw9ZpXPaO79fuQoj7vR79BHbBLYnlHxMNAEGnzgJwK13DGDnHdoz0mGsCHgUuswn7+nTEX",
"start_date_in_millis": 1526860800000
}
}

curl -u user:password -XPUT 'http://ip:port/_xpack/license' -H "Content-Type: application/json" -d @/usr/local/es6/license.json

6、kibana不用重启,证书有效期2050已生效,角色管理、ELK监控可用。

posted on 2020-04-29 15:46  kurama2018  阅读(760)  评论(0编辑  收藏  举报