Fixing Logstash: (OpenSSL::X509::StoreError) setting default path failed: the trustAnchors parameter must be non-empty

While starting the Logstash you may run into this error: org.jruby.exceptions.RaiseException: (OpenSSL::X509::StoreError)…

logstash trustAnchors

While starting the Logstash you may run into this error:

org.jruby.exceptions.RaiseException: (OpenSSL::X509::StoreError) setting default path failed: the trustAnchors parameter must be non-empty