We are currently running Elasticsearch 5.4.2 in our organization. Currently, this is integrated with our Intranet site(developed with asp.net), and is used to search some important information regarding our business.
We are planning to move our intranet site from “http” to “https”. When the Intranet site runs under “https” and elasticsearch under “http”, we are receiving following error “jquery 1.12.4.min.js:4 Mixed Content: The page at ‘https://intranet/codesearch’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://intranet:9200/code2017/_search’. This request has been blocked; the content must be served over HTTPS”
Hence, we have decided to run elasticsearch under “https” and installed X-Pack. Now, the 30 days trail period of X-Pack is over. The pricing of X-Pack is high which we can’t afford. As an alternate, we tried with SearchGuard. The below steps have been taken to configure SG, but no luck.
while running install_demo_configuration.sh, following error occurs.
read: unknown option: -p
read: usage: read [-r] [name …]
Instead of running install_demo_configuration.sh, created the “keystore.jks”,“truststore.jks” manually with powershell(by running base64) and moved them to elasticsearch config folder and added the following into elasticserach.yml file.
- “CN=kirk,OU=client,O=client,L=test, C=de”
After that, tried to run sgadmin_demo.sh, but, following error occurs
Error: Could not find or load main class com.floragunn.searchguard.tools.SearchGuardAdmin
Now, elasticsearch is in running state, but showing “Search Guard not initialized (SG11). See https://github.com/floragunncom/search-guard-docs/blob/master/sgadmin.md”
Our environment is
OS: Windows server 2012 R2
ES: elasticsearch 5.4.2
SG: searchguard 5.4.2
Number of nodes: 1