PKIX path building failed unable to find valid certification path to requested target Payara Server
See original GitHub issueHello, I’m trying to run the api in a JEE application, using payara server. But when I run the simple routine of sending a message to a group I get an exception. I have already tried to enter the telegram certificate in the keystore.jks and cacert.jks of the $ PAYARA_HOME / glassfish / domains / lardosmeussonhos / config server, but it did not resolve. can you help me?
This is the exception: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.pengrad.telegrambot.impl.TelegramBotClient.send(TelegramBotClient.java:59) at com.pengrad.telegrambot.TelegramBot.execute(TelegramBot.java:41) … This is a part of the code:
`TelegramBot bot = new TelegramBot(TOKEN); SendResponse sendResponse = bot.execute(new SendMessage(CHAT_ID, MENSAGEM));
System.out.println("Mensagem Enviada? " + sendResponse.isOk());`
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Thank you @pengrad. It worked very well!!!
Hi @roabol, create new issue please and give as much details as possible