# Logstash keystore key alias selection

**URL:** <https://discuss.elastic.co/t/logstash-keystore-key-alias-selection/365279>\
**Category:** Logstash\
**Created:** [August 21, 2024, 12:29pm UTC](https://discuss.elastic.co/t/logstash-keystore-key-alias-selection/365279 "2024-08-21T12:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natharran](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@natharran](https://discuss.elastic.co/u/natharran)\
**Post date:** [August 21, 2024, 12:29pm UTC](https://discuss.elastic.co/t/logstash-keystore-key-alias-selection/365279/1 "2024-08-21T12:29:36Z")

</div>

Hello,

I'm trying to configure Kafka output module for Logstash. I have my PKCS12 keystore and truststore prepared with proper key and certs added, but I wonder - if there are more keys in the keystore, how does Logstash choose only one? I see no way to configure this. Or is there a default alias this key should have?

Thanks.
