Skip to content

Instantly share code, notes, and snippets.

@vanga
Created September 8, 2022 14:41
Show Gist options
  • Save vanga/57c7a523c1c1ec63749b326d9557feed to your computer and use it in GitHub Desktop.
Save vanga/57c7a523c1c1ec63749b326d9557feed to your computer and use it in GitHub Desktop.
Create self signed certificates using Elasticsearch util scripts
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.1-linux-x86_64.tar.gz
tar -zxf elasticsearch-8.4.1-linux-x86_64.tar.gz
cd elasticsearch-8.4.1/
./bin/elasticsearch-certutil ca --pem
unzip elastic-stack-ca.zip
./bin/elasticsearch-certutil cert --ca-cert ca/ca.crt --ca-key ca/ca.key --pem --name elk.example.com
unzip certificate-bundle.zip
cd ../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment