I had a Blynk server running for several months.
Since the last system update, the Blynk server starts but malfunctions after generating the following exception:
Exception in thread “main” java.lang.RuntimeException: failed to initialize the server-side SSL context
at cc.blynk.server.SslContextHolder.initSslContext(SslContextHolder.java:137)
at cc.blynk.server.SslContextHolder.(SslContextHolder.java:83)
at cc.blynk.server.Holder.(Holder.java:156)
at cc.blynk.server.launcher.ServerLauncher.start(ServerLauncher.java:95)
at cc.blynk.server.launcher.ServerLauncher.main(ServerLauncher.java:73)
I do not know enough about Java to find the origin of this issue.
Does anyone have an idea why this exception thrown up?
I read again the log file and I saw the following line:
20:57:05.171 INFO - Didn’t find Let’s Encrypt certificates.
However the certificates exist since the email server works as well as the web server.
Is it a java library that works differently or the Let’s encrypt root certificate that is problematic?
The whole system but I am not longer sure that the problem comes from the update.
I initially thought it because it was correlated with this operation.
But I saw that the certificate was renewed at the same time.
Actually one of the Ubuntu version had an issue with certificates and Java 11. I can’t tell what exactly it was as I don’t remember. However, system update could be related. In my case only update to the latest Ubuntu version did the trick.