# ELK SSL config problem

**URL:** https://discuss.elastic.co/t/elk-ssl-config-problem/342668
**Category:** Elasticsearch
**Created:** [September 10, 2023, 6:21am UTC](https://discuss.elastic.co/t/elk-ssl-config-problem/342668 "2023-09-10T06:21:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![p81061473525](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/p81061473525/32/125489_2.png) [@p81061473525](https://discuss.elastic.co/u/p81061473525)
#### Post date: [September 10, 2023, 6:21am UTC](https://discuss.elastic.co/t/elk-ssl-config-problem/342668/1 "2023-09-10T06:21:34Z")

</div>

Hello, recently I've been practicing setting up ELK 8.9.

My target architecture looks like this: Filebeat -\> Logstash -\> ES \<- Kibana. I encountered difficulties when configuring encryption.

Currently, my architecture is Filebeat -\> ES -\> Kibana. However, I faced issues when configuring SSL. ES and Kibana are on the same machine, while Filebeat is on another machine.

After installing ES, the system generates an `http_ca.crt` to verify if ES is operating correctly. So, I copied `http_ca.crt` to my computer to check if an external connection is possible. However, I found that when I changed "localhost" to an IP address, I received a certificate hostname mismatch error.

Strangely, when I performed the same operation within Filebeat's configuration, it could successfully send data to ES. I originally expected Filebeat not to work because using `http_ca.crt` should also result in a hostname mismatch. I would like to know the reason for this.

 ![ELK](https://us1.discourse-cdn.com/elastic/original/3X/7/0/70764cb0a31a47b9671d2010d5a63ee2eb038835.png)

> **[Install Elasticsearch with RPM | Elasticsearch Guide \[8.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html#_security_certificates_and_keys_3)**

And also I want to know about docs

http\_ca.crt  
The CA certificate that is used to sign the certificates for the HTTP layer of this Elasticsearch cluster.

Is the certificate on the HTTP layer equal to HTTPS?

If I change it to the architecture I want: Filebeat -\> Logstash -\> ES \<- Kibana  
There is an https\_ca.crt root certificate on ES. When using Logstash to authenticate HTTPS with the https\_ca.crt root certificate (similar to Filebeat), it seems fine. But if I want to encrypt the communication between Filebeat and Logstash, where the server side becomes Logstash, do I need to use OpenSSL on Logstash to generate a new root certificate and then use that root certificate to sign a certificate for Filebeat to enable encryption between Filebeat and Logstash?

---

<div class="post-metadata">

### Author: ![p81061473525](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/p81061473525/32/125489_2.png) [@p81061473525](https://discuss.elastic.co/u/p81061473525)
#### Post date: [September 15, 2023, 12:34pm UTC](https://discuss.elastic.co/t/elk-ssl-config-problem/342668/2 "2023-09-15T12:34:48Z")

</div>

I've slove my problem.

I don't know know to close the problem. 🙂

---

<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: [September 15, 2023, 3:22pm UTC](https://discuss.elastic.co/t/elk-ssl-config-problem/342668/3 "2023-09-15T15:22:33Z")

</div>

Hi @p81061473525

can you share your solution for others to learn from it?

The topic will close on it's own.

---

<div class="post-metadata">

### Author: ![p81061473525](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/p81061473525/32/125489_2.png) [@p81061473525](https://discuss.elastic.co/u/p81061473525)
#### Post date: [September 16, 2023, 11:26am UTC](https://discuss.elastic.co/t/elk-ssl-config-problem/342668/4 "2023-09-16T11:26:22Z")

</div>

OK.

It's knwoledge for cacert .  
filebeat has four certificate mode.

You can see detail in the following URL

> **[Configure SSL | Filebeat Reference \[8.9\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#server-verification-mode)**

And , You can chose certificate mode to ignore Subject Alternative Name error.

But I don't know how to let `curl` command to ignore Subject Alternative Name , ( Not --insecure / -k , I think the two parameter is ignore certificate ),

So , the original question behavior is current.  
Because curl detect Subject Alternative Name . But filebeat can ignore that.

---

<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: [October 14, 2023, 11:26am UTC](https://discuss.elastic.co/t/elk-ssl-config-problem/342668/5 "2023-10-14T11:26:52Z")

</div>

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