Hi,
I run this command line after generating all certificates with offline TLS tool. i wanted to generate keystore and truststore files for connecting with java elastic client.
keytool -import -trustcacerts -alias elasticcluster -file root-ca.pem -keystore truststore.jks
I’m getting the following error when starting elastic.
java.security.KeyStoreException: no key alias named XYZ
my elasticsearch.yml looks like this:
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.resolve_hostname: false
searchguard.ssl.http.enabled: true
searchguard.ssl.transport.keystore_type: jks
searchguard.ssl.transport.keystore_filepath : truststore_1.jks
searchguard.ssl.transport.keystore_password : eVXbaBTwHN9f
searchguard.ssl.transport.truststore_type : jks
searchguard.ssl.transport.truststore_filepath : truststore_1.jks
searchguard.ssl.transport.truststore_password : eVXbaBTwHN9f#
searchguard.ssl.http.keystore_type: jks
searchguard.ssl.http.keystore_filepath: truststore_1.jks
searchguard.ssl.http.keystore_password : eVXbaBTwHN9f#
searchguard.ssl.http.truststore_type : jks
searchguard.ssl.http.truststore_filepath: truststore_1.jks
searchguard.ssl.http.truststore_password: eVXbaBTwHN9f#