# Logstash to Logstash enable security SSL

**URL:** https://discuss.elastic.co/t/logstash-to-logstash-enable-security-ssl/310103
**Category:** Logstash
**Tags:** elastic-stack-security
**Created:** [July 20, 2022, 7:49am UTC](https://discuss.elastic.co/t/logstash-to-logstash-enable-security-ssl/310103 "2022-07-20T07:49:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thahgr](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@thahgr](https://discuss.elastic.co/u/thahgr)
#### Post date: [July 20, 2022, 7:49am UTC](https://discuss.elastic.co/t/logstash-to-logstash-enable-security-ssl/310103/1 "2022-07-20T07:49:28Z")

</div>

Logstash to logstash, how can we enable SSL communication with http out -\> http in plugins ?

for the moment , unsecured, the two instances as below work fine

```auto
 output {
    http {
        url => "the url"
        http_method => post
    }
}

input {
    http {
    port => 5044
  }
}

```

The configuration for SSL is very confusing and the documentation is only regards to beats-logstash or logstash-elastic.

So for http output there are the below options

```auto
cacert =>
client_cert => 
client_key =>

```

for http in there is the deprecated

```auto
keystore => 
keystore_password => 

```

and the rest

```auto
ssl_certificate =>
ssl_certificate_authorities =>
ssl_key => 
ssl_key_passphrase => 

```

I am totaly confused on how to proceed. Should I use ca.crt ? jks ? the ssl key is in pkcs8 format ? pem ? p12 ? Also the url should be https now right ?

The closest post i found is [Http output plugin json\_batch format to Http input plugin - #10 by Aceman87](https://discuss.elastic.co/t/http-output-plugin-json-batch-format-to-http-input-plugin/127462/10)  
but still couldnt get it to work.

Any help is appreciated  
Thanks!

---

<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: [August 17, 2022, 7:50am UTC](https://discuss.elastic.co/t/logstash-to-logstash-enable-security-ssl/310103/2 "2022-08-17T07:50:08Z")

</div>

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