# Logstash configuration to IBM MQ using TLS and Cipher

**URL:** <https://discuss.elastic.co/t/logstash-configuration-to-ibm-mq-using-tls-and-cipher/323995>\
**Category:** Logstash\
**Created:** [January 26, 2023, 7:43am UTC](https://discuss.elastic.co/t/logstash-configuration-to-ibm-mq-using-tls-and-cipher/323995 "2023-01-26T07:43:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JHE](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JHE](https://discuss.elastic.co/u/JHE)\
**Post date:** [January 26, 2023, 7:43am UTC](https://discuss.elastic.co/t/logstash-configuration-to-ibm-mq-using-tls-and-cipher/323995/1 "2023-01-26T07:43:45Z")

</div>

Hi,

I'm trying to connect logstash to IBM MQ using jms input.  
It's OK for an non secured connection. However I didn't find any example to configure a TLS connection and to specify a cipher suites.

Here bellow my configuration

```auto
input {
        jms {
                destination => 'TEST.QUEUE'
                factory => 'com.ibm.mq.jms.MQQueueConnectionFactory'
                factory_settings => {
                        queue_manager => 'QMGRNAME'
                        host_name => 'hostname'
                        port => 443
                        channel => 'CHANNEL.NAME'
                        ssl_cipher => ['TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256']
                        transport_type => 1
                }
                truststore => "/path/truststore.jks"
                truststore_password => "truststore_password"
                require_jars => ['com.ibm.mq.allclient.jar']
        }
}

```

Does anyone have experience ?

Thanks  
Johan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 23, 2023, 7:44am UTC](https://discuss.elastic.co/t/logstash-configuration-to-ibm-mq-using-tls-and-cipher/323995/2 "2023-02-23T07:44:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
