How to enable SSL in ELK?
Find the steps to enable SSL in ELK
- Follow the steps mentioned in Encrypting Communications in Elasticsearch link for Enabling SSL
- Create certificate authority for Elasticsearch using bin/x-pack/certutil ca
- It will ask password, create a password
- Generate Certificate using bin/x-pack/certutil cert --ca elastic-stack-ca.p12 and create password again
- If using PKCS#12 format, add below lines in elasticsearch.yml:
- xpack.security.http.ssl.enabled: true
- xpack.security.http.ssl.keystore.path: certs/elastic-certificates.p12
- xpack.security.http.ssl.truststore.path: certs/elastic-certificates.p12
- Add password to Keystore using below commands for PKCS#12 format:
- bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password
- bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password
- Restart Elasticsearch service. While browsing use https.
- Add the same URL with HTTPS in Kibana.yml and restart service.