# SSL certificate embedding in winlogbeat or auditbeat - Need example

**URL:** https://discuss.elastic.co/t/ssl-certificate-embedding-in-winlogbeat-or-auditbeat-need-example/324720
**Category:** Logstash
**Created:** [February 4, 2023, 11:18pm UTC](https://discuss.elastic.co/t/ssl-certificate-embedding-in-winlogbeat-or-auditbeat-need-example/324720 "2023-02-04T23:18:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mgotechlock](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mgotechlock](https://discuss.elastic.co/u/mgotechlock)
#### Post date: [February 4, 2023, 11:18pm UTC](https://discuss.elastic.co/t/ssl-certificate-embedding-in-winlogbeat-or-auditbeat-need-example/324720/1 "2023-02-04T23:18:33Z")

</div>

I'd like to know if someone can present a working example of their Beats config for Beats to Logstash with SSL, but using the embedding the certificate in the beats config as described in [Configure SSL | Winlogbeat Reference [8.6] | Elastic](https://www.elastic.co/guide/en/beats/winlogbeat/current/configuration-ssl.html#server-certificate).

I have many questions, like:  
Does it actually work?  
Does it allow the Beat to trust logstash's cert even if logstash doesn't trust the CA?  
Does it allow the Beat to trust a cert even if the Beat only knows logstash as its IP and not its FQDN?  
What is the indentation needed for it? In the example on that URL, the cert info seems to be indented about 4 spaces each line so does that mean that is a requirement?

---

<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: [March 4, 2023, 11:18pm UTC](https://discuss.elastic.co/t/ssl-certificate-embedding-in-winlogbeat-or-auditbeat-need-example/324720/2 "2023-03-04T23:18:54Z")

</div>

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