Closed Quicksy closed 4 years ago
It would be great if you run the app with args -Djavax.net.debug=ssl,handshake
and post result here.
It seems for me, the cause is that OpenJDK doesn't contain root certificates out of box. Try to install them separately like that
apt-get install ca-certificates-java
Suddenly it was a problem with OpenJDK 8 - I tired to purge it and install OpenJDK 9 instead - and bots got connected immediately. Thank you for your help :)
Today suddenly all my bots cannot get connected to the Telegram API. The bot starts, then waiting some time and then show the following stacktrace:
I found in the Internet, that sometimes this error can be resolved by adding the following code into the program:
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
- but it didn't help at all. Could you suggest what should I do or where I need to dig to find the solution on this?