Unable to post the client's cert to Webapi

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

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"
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

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"
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.

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