# Graylog Data Node Cluster Cert Errors

**URL:** <https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864>\
**Category:** Graylog Central (peer support)\
**Tags:** data-node\
**Created:** [February 5, 2025, 6:35pm UTC](https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864 "2025-02-05T18:35:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysadm1](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sysadm1](https://community.graylog.org/u/sysadm1)\
**Post date:** [February 5, 2025, 6:35pm UTC](https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864/1 "2025-02-05T18:35:22Z")

</div>

## We converted a 2 node manually configured OpenSearch cluster to Graylog Data Nodes this week, but now can’t get more than one node up in the cluster. The other node failed to join the cluster with numerous certificate errors, so we tried creating a brand new Data Node server with a fresh install and it also will not join the cluster with the same certificate errors. We are left with only one out of 3 Data Nodes up and running.

- OS Information: Ubuntu Server 22.04 LTS
- Package Version: Graylog 6.1.5
- Service logs, configurations, and environment variables:

* * *

An exception 'OpenSearchSecurityException[The provided TCP channel is invalid.]; nested: DecoderException[javax.net.ssl.SSLHandshakeException: Insufficient buffer remaining for AEAD cipher fragment (2). Needs to be more than tag size (16)]

Exception during establishing a SSL connection: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate\_unknown

An exception 'OpenSearchSecurityException[The provided TCP channel is invalid.]; nested: DecoderException[javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching syslog-opensearch-01 found

* * *

Tried re-issuing certificates to the affected node, tried adding a completely new data node server, tried figuring out how to add OpenSearch configuration parameters to try and set plugins.security.ssl.transport.enforce\_hostname\_verification = false but could not figure out how to pass OpenSearch parameters through to the automatically generated opensearch.yml

Is there a known issue with Data Nodes and not supporting multiple nodes in a cluster, or is there additional configuration required to enable multi-node clusters of Data Nodes?

---

<div class="post-metadata">

**Author:** ![Tdvorak](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tdvorak](https://community.graylog.org/u/Tdvorak)\
**Post date:** [February 6, 2025, 7:42am UTC](https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864/2 "2025-02-06T07:42:54Z")

</div>

Hello @sysadm1,

Generally your setup should work fine with 2 or more nodes. That’s a supported and recommended setup.

From your stack trace:

> [@sysadm1](#):
>
> No subject alternative DNS name matching syslog-opensearch-01 found

Can you tell me how your setup looks like? Do you have several machines with unique host names? How do you resolve hostnames? Is this some kind of containerized setup?

> [@sysadm1](#):
>
> could not figure out how to pass OpenSearch parameters through to the automatically generated opensearch.yml

Data node will forward any `opensearch.` prefixed env property to the underlying opensearch (by adding this property to the generated opensearch.yml). So you can set

`opensearch.plugins.security.ssl.transport.enforce_hostname_verification = false`

as an env property to achieve that. But that seems like a workaround for a problem around hostname resolution or the way how your nodes are trying to connect to each other. I’d recommend fixing that issue first, the rest will then work without additional configuration.

Best regards,  
Tomas

---

<div class="post-metadata">

**Author:** ![sysadm1](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sysadm1](https://community.graylog.org/u/sysadm1)\
**Post date:** [February 6, 2025, 2:02pm UTC](https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864/3 "2025-02-06T14:02:50Z")

</div>

We have a single node Graylog server, and then three OpenSearch cluster nodes that are all separate virtual machines running Ubuntu 22.04 LTS. DNS resolution works fine between all the servers, I think that error is related the DNS subject alternative name in the certificate, not DNS resolution of the hostnames. This is a more complete log snippet that shows these TLS handshake errors between Data Nodes:

````auto
[WARN][i.n.c.AbstractChannelHandlerContext] [syslog-opensearch-03] An exception 'OpenSearchSecurityException[The provided TCP channel is invalid.]; nested: DecoderException[javax.net.ssl.SSLHandshakeException: Insufficient buffer remaining for AEAD cipher fragment (2). Needs to be more than tag size (16)]; nested: SSLHandshakeException[Insufficient buffer remaining for AEAD cipher fragment (2). Needs to be more than tag size (16)]; nested: BadPaddingException[Insufficient buffer remaining for AEAD cipher fragment (2). Needs to be more than tag size (16)];'```

[WARN][i.n.c.AbstractChannelHandlerContext] [syslog-opensearch-03] An exception 'OpenSearchSecurityException[The provided TCP channel is invalid.]; nested: DecoderException[javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching syslog-opensearch-01 found.]; nested: SSLHandshakeException[No subject alternative DNS name matching syslog-opensearch-01 found.]; nested: CertificateException[No subject alternative DNS name matching syslog-opensearch-01 found.];'

````

We have reverted the configuration back to using these nodes in a manually configured OpenSearch cluster instead of being Data Nodes as a test and they are working fine now, it appears that the problem is being introduced with the TLS certs or security settings that are provisioned by the Data Node.

---

<div class="post-metadata">

**Author:** ![Tdvorak](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tdvorak](https://community.graylog.org/u/Tdvorak)\
**Post date:** [February 7, 2025, 8:11am UTC](https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864/4 "2025-02-07T08:11:37Z")

</div>

Data nodes get their SAN by looking up the hostname related to the `bind_address` configuration (by default 0.0.0.0), if not overriden by `hostname` in the datanode.conf.

> <https://github.com/Graylog2/graylog2-server/blob/1849c0bf3e454af2c49183cc7300b57286727a9a/data-node/src/main/java/org/graylog/datanode/Configuration.java#L621>

So if you believe that the alternative name in the certificate is wrong, then it makes sense to look at the above and try to understand where is the name coming from and why it’s not correct.

Additionally I’d check that `node_name` is unique for each node (if explicitly defined) and there is no copy-pasted configuration that would lead to incorrectly assigned certificates.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [February 21, 2025, 8:11am UTC](https://community.graylog.org/t/graylog-data-node-cluster-cert-errors/34864/5 "2025-02-21T08:11:58Z")

</div>

Closed on February 21, 2025, 8:11am UTC

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