# Logstash http output user password

**URL:** <https://discuss.elastic.co/t/logstash-http-output-user-password/231525>\
**Category:** Logstash\
**Created:** [May 7, 2020, 11:43am UTC](https://discuss.elastic.co/t/logstash-http-output-user-password/231525 "2020-05-07T11:43:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [May 8, 2020, 7:11pm UTC](https://discuss.elastic.co/t/logstash-http-output-user-password/231525/10 "2020-05-08T19:11:53Z")

</div>

@Badger @ptambam  
I managed to create an authorization with @badger's different answer  
[here](https://discuss.elastic.co/t/how-to-pass-basic-authentication-details-in-http-filter-plugin/201246/6)

My config is now

> output  
> {  
> http  
> {  
> format=\>"json"  
> http\_method=\>"post"  
> url=\>"[https://zenossprod.lsk12.com/zport/dmd/evconsole\_router](https://zenossprod.lsk12.com/zport/dmd/evconsole_router)"  
> cacert =\> "/opt/cert/cert.crt"  
> headers =\> {  
> "Authorization" =\> "Basic RUxLOldlbGNvbWUxMjMgaHR0cHMbWQvZXZjb25zb2xlX3JvdXRlcg=="  
> }  
> }  
> stdout { codec =\> rubydebug }  
> }

But I'm still getting the certificate error,  
message=\>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",

I also tried with pem and cer type certificates. None of it works,

Please help me resolve it.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-http-output-user-password/231525)._
