# Logstash input/output plugin SSL configuration error

**URL:** <https://discuss.elastic.co/t/logstash-input-output-plugin-ssl-configuration-error/351447>\
**Category:** Logstash\
**Created:** [January 19, 2024, 1:35pm UTC](https://discuss.elastic.co/t/logstash-input-output-plugin-ssl-configuration-error/351447 "2024-01-19T13:35:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matus.vlcek](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@matus.vlcek](https://discuss.elastic.co/u/matus.vlcek)\
**Post date:** [January 19, 2024, 1:35pm UTC](https://discuss.elastic.co/t/logstash-input-output-plugin-ssl-configuration-error/351447/1 "2024-01-19T13:35:25Z")

</div>

Hi guys,  
I've tried to configure new default approach for logstash to logstash communication using logstash input, output plugins. It works fine without SSL, but I wasn't able to get SSL to work. It outputs this error on sender side. Does anyone run into the same issue?

```auto
Jan 19 13:56:51 server-1 logstash[782801]: [2024-01-19T13:56:51,820][ERROR][logstash.outputs.logstash] Could not send data to host {:host=>"https://10.30.1.1:12222", :message=>"PKIX path
 validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors", :class=>Manticore::ClientProtocolException, :retry=>true}

```

I'm using logstash 8.12.0, certs are generated by elasticsearch-certutil, tried pkcs12 and pem, ca and self-signed, every possible was I could think of.

```auto
output {
  logstash {
    hosts => "10.30.1.1:12222"
    ssl_enabled => true
    ssl_keystore_path => "/etc/logstash/certs/logstash-client.p12"
    ssl_keystore_password => "password"
  }
}

```

```auto
input {
  logstash {
    port => 12222
    ssl_enabled => true
    ssl_keystore_path => "/etc/logstash/certs/logstash-server.p12"
    ssl_keystore_password => "password"
  }
}

```

elk docs:

> **[Logstash-to-Logstash: Output to Input | Logstash Reference \[8.12\] | Elastic](https://www.elastic.co/guide/en/logstash/8.12/ls-to-ls-native.html)**

> **[Logstash input plugin | Logstash Reference \[8.12\] | Elastic](https://www.elastic.co/guide/en/logstash/8.12/plugins-inputs-logstash.html)**

> **[Logstash output plugin | Logstash Reference \[8.12\] | Elastic](https://www.elastic.co/guide/en/logstash/8.12/plugins-outputs-logstash.html)**

Thanks  
Matus

---

<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 16, 2024, 1:36pm UTC](https://discuss.elastic.co/t/logstash-input-output-plugin-ssl-configuration-error/351447/2 "2024-02-16T13:36:13Z")

</div>

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