SunCertPathBuilderException when Logstash 6.4.2 outputs to HTTPS

Hi there,
I'm trying to forward messages from RabbitMQ to an HTTPS server, using a self-signed certificate. The relevant piece of my configuration is as follows:

output {
    http {
        url => "https://localhost:8443/<...>"
        format => "json"
        http_method => "post"
        keystore => "<...>keystore.p12"
        keystore_type => "PKCS12"
        keystore_password => "..."
    }
}

The error I get is:

:message=>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", :class=>"Manticore::ClientProtocolException"

The body of the request is correct, since it works fine over HTTP (obviously with an updated configuration file).

Is it anything obvious I'm missing here?

1 Like

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