# Unable to post the client's cert to Webapi

**URL:** <https://discuss.elastic.co/t/unable-to-post-the-clients-cert-to-webapi/255076>\
**Category:** Logstash\
**Created:** [November 11, 2020, 1:56pm UTC](https://discuss.elastic.co/t/unable-to-post-the-clients-cert-to-webapi/255076 "2020-11-11T13:56:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdr](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sdr](https://discuss.elastic.co/u/sdr)\
**Post date:** [November 11, 2020, 1:56pm UTC](https://discuss.elastic.co/t/unable-to-post-the-clients-cert-to-webapi/255076/1 "2020-11-11T13:56:31Z")

</div>

I'm using elk version 6.7.0. Issue with sending the client certificate using logstash output plugin to webapi.

---

<div class="post-metadata">

**Author:** ![sdr](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sdr](https://discuss.elastic.co/u/sdr)\
**Post date:** [November 11, 2020, 1:57pm UTC](https://discuss.elastic.co/t/unable-to-post-the-clients-cert-to-webapi/255076/2 "2020-11-11T13:57:30Z")

</div>

Below is the configuration in logstash

Output  
{  
Format ="json"  
cacert ="c:/dev/certca.cer"  
client\_cert ="c:/dev/certca.cer"  
client\_key ="c:/dev/client\_public.cer"  
http\_method = "post"  
url="[https://localhost:443/event/logs](https://localhost:443/event/logs)"  
content\_type="application/json"  
}

When I'm calling webapi using the above post method. In action content the client certificate is coming as null.

If I call this using. Net client I'm getting the client certificate, but not getting with logstash output plugin. Please let me know if certificates are supported in logstash output plugin or I'm missing any other configuration.

I'm referring to the url [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html)

---

<div class="post-metadata">

**Author:** ![sdr](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sdr](https://discuss.elastic.co/u/sdr)\
**Post date:** [November 13, 2020, 2:31pm UTC](https://discuss.elastic.co/t/unable-to-post-the-clients-cert-to-webapi/255076/3 "2020-11-13T14:31:40Z")

</div>

output  
http {  
format ="json"  
cacert ="c:/dev/certca.cer"  
client\_cert ="c:/dev/certca.cer"  
client\_key ="c:/dev/client\_public.cer"  
http\_method = "post"  
url="[https://localhost:443/event/logs](https://localhost:443/event/logs)"  
content\_type="application/json;charset=UTF-8"  
}  
Configuration in Logstash.conf file. Its perfectly working with http but not with https by providing cacert, client\_cert and client\_key.

Please let me know if any one worked on Logstash output plugin with Https.

---

<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:** [December 11, 2020, 2:31pm UTC](https://discuss.elastic.co/t/unable-to-post-the-clients-cert-to-webapi/255076/4 "2020-12-11T14:31:56Z")

</div>

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