# Problem with Logstash SSL

**URL:** <https://discuss.elastic.co/t/problem-with-logstash-ssl/298084>\
**Category:** Logstash\
**Tags:** elastic-stack-security\
**Created:** [February 23, 2022, 8:34pm UTC](https://discuss.elastic.co/t/problem-with-logstash-ssl/298084 "2022-02-23T20:34:29Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 2, 2022, 9:04pm UTC](https://discuss.elastic.co/t/problem-with-logstash-ssl/298084/17 "2022-03-02T21:04:24Z")

</div>

Did you use IPs or localhost when you created the cert... use the same in the setting

`hosts => ["https://localhost:9200"]`

Note my example

```auto
    hosts => ["https://10.168.0.116:9200"]

```

This may be an issues with your SSL Setup on the Box...

There was also a thread on this here

> [@Error "Path does not chain with any of the trust anchors" when enabling TSL between nodes](https://discuss.elastic.co/t/error-path-does-not-chain-with-any-of-the-trust-anchors-when-enabling-tsl-between-nodes/131078):
>
> Hi, I have been trying to enable TLS encryption between my nodes. I have followed [the instructions of the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/configuring-tls.html#tls-transport) and generated p12-format certificates for each node and configured my cluster like this (the certificates don't have a password: cluster.name: eLABsticsearch node.name: elastic01 node.data: True node.master: True node.ingest: True node.ml: True search.remote.connect: false path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch network.host: 172.28.128.11 …

---

_[View the full topic](https://discuss.elastic.co/t/problem-with-logstash-ssl/298084)._
