I've seen many places that show enabling Kafka client authentication using the same example code as here:
Namely:
ssl.keystore.location=/var/private/ssl/kafka.client.keystore.jks
ssl.keystore.password=test1234
ssl.key.password=test1234
My question is, how does the client specify the particular key within the keystore to use? Everywhere else I see JKS keystores discussed, keys are specified using an alias. The only things I can figure is that:
- The alias is expected to be hard-coded (I can find no reference to this fact, however)
- It is expected that only one key is in the keystore, and thus it uses the first key it finds
- It scans and uses the first where the password matches the value of the ssl.key.password property