In Elasticsearch where to generate keystore and add authentication in readonlyrest plugin?

非 Y 不嫁゛ 提交于 2019-12-23 04:06:06

问题


I am trying to add password authentication in my elasticsearch cluster using readonlyrest plugin. I installed the plugin successfully now i am trying to configure my configuration file(.yml file) but there In case 0 they are using a keystore see below

http.type: ssl_netty4
readonlyrest:
enable: true

ssl:
  enable: true
  keystore_file: "/elasticsearch/plugins/readonlyrest/keystore.jks"
  keystore_pass: readonlyrest
  key_pass: readonlyrest

Can anyone please tell me from where i can generate this keystore and also where is the username and password authentication parameters set in this plugin.


回答1:


You can use Letsencrypt to generate a valid SSL certificate for free.

Use Letsencrypt's own tool called certbot

A Letsencrypt certificate works just fine in ReadonlyREST, but first you have to convert it into a JKS keystore.

Obtaining a JKS keystore from Letsencrypt certs is a common procedure: you would do the same if you want to use Letsencrypt with Tomcat. A very common, googleable use case.

PS: I will progressively release some detailed documentation in the following weeks on the official website.



来源:https://stackoverflow.com/questions/42056188/in-elasticsearch-where-to-generate-keystore-and-add-authentication-in-readonlyre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!