Skip to content

Instantly share code, notes, and snippets.

@kakoni
Last active April 27, 2018 10:50
Show Gist options
  • Save kakoni/da5c927aa687b6a8d61f4578cd20f397 to your computer and use it in GitHub Desktop.
Save kakoni/da5c927aa687b6a8d61f4578cd20f397 to your computer and use it in GitHub Desktop.
Logstash keystore generation
# Using keytool
keytool -genkey -keyalg RSA -alias logstash -keystore keystore.jks -storepass 123pass -ext SAN=ip:1.2.3.4,ip:1.2.3.4.5 -validity 360 -keysize 2048
SAN ips are your server ips.
Also set first and lastname to ip address well. This is known as commanname and according to Internet
"here may be compatibility issues with certificates for IP addresses unless the IP address is in both the commonName and subjectAltName fields"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment