Plugin telegram get error: Failed to send Telegram messages. API request failed: PKIX path building failed

i install graylog cluster http web interface,
graylog cluster, elasticsearch cluster https, (added trust store java)
but when i install telegram plugin i get error
Caused by: org.graylog.events.notifications.TemporaryEventNotificationException: Failed to send Telegram messages. API request failed: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
@gsmith Hi , how to plugin graylog work with java trust store,
i added config env : -Djavax.net.ssl.trustStore=/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts.jks to /etc/default/graylog-server

Hello @ducna09

You may want to look over this documentation here This would explain Howto in more detail.

Im not sure that a trusted Keystore, the /etc/default/graylog-server is for JVM settings.

In order for the JVM to pick up the new trust store, it has to be started with the JVM parameter
-Djavax.net.ssl.trustStore=/path/to/cacerts.jks. If you’ve been using another password to encrypt the JVM trust store than the default changeit, you additionally have to set the JVM parameter -Djavax.net.ssl.trustStorePassword=secret.

EDIT: Plugins are placed in this folder and Graylog service needs to be restarted.

  • /usr/share/graylog-server/plugin

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