# Logstash authentication in rabbitMQ: PKIX path building failed

**URL:** <https://discuss.elastic.co/t/logstash-authentication-in-rabbitmq-pkix-path-building-failed/172816>\
**Category:** Logstash\
**Created:** [March 18, 2019, 4:09pm UTC](https://discuss.elastic.co/t/logstash-authentication-in-rabbitmq-pkix-path-building-failed/172816 "2019-03-18T16:09:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wertu\_oz](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@wertu\_oz](https://discuss.elastic.co/u/wertu_oz)\
**Post date:** [March 18, 2019, 4:09pm UTC](https://discuss.elastic.co/t/logstash-authentication-in-rabbitmq-pkix-path-building-failed/172816/1 "2019-03-18T16:09:19Z")

</div>

Hi guys,

Help me set up logstash authentication in rabbitMQ using a certificate.

Input config:

rabbitmq {  
id =\> "Inspector.IncomingEvents"  
host =\> 'server1'  
vhost =\> "TEST"  
queue =\> "Inspector.IncomingEvents"  
durable =\> true  
user =\> 'logstash'  
ssl =\> "true"  
ssl\_certificate\_path =\> ["C:/Services/Certs/cert.pfx"]  
ssl\_certificate\_password =\> "password"  
metadata\_enabled =\> true  
add\_field =\> {  
"[@logRecordType]" =\> "Event"  
}  
}

When a start Logstash -f logstash.conf, i get an error:

[ERROR][logstash.inputs.rabbitmq] RabbitMQ connection error, will retry. {:error\_message=\>"sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", :exception=\>"Java::JavaxNetSsl::SSLHandshakeException"}

In RabbitmMQ log:

[info] \<0.7281.0\> TLS server: In state certify received CLIENT ALERT: Fatal - Certificate Unknown

I use windows platform in servers Logstash and RabbitMQ.

---

<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:** [April 15, 2019, 4:09pm UTC](https://discuss.elastic.co/t/logstash-authentication-in-rabbitmq-pkix-path-building-failed/172816/2 "2019-04-15T16:09:20Z")

</div>

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