[SOLVED] Javax.net.ssl.SSLHandshakeException: null cert chain

Hello!
Can’t create new account from the mobile application to the local blynk server.
However, access to the admin panel from a browser without any problems.
File blynk.log contains the following:

01:19:32.759 INFO - Using data dir ‘.\data’
01:19:32.798 INFO - Initializing mail transport. Username : mymail@gmail.com. SMTP host : smtp.gmail.com:587
01:19:33.043 INFO - Plain tcp/ip hardware server port 8442.
01:19:33.043 INFO - Enabling SSL for hardware.
01:19:33.327 INFO - SSL hardware port 8441.
01:19:33.329 INFO - Enabling SSL for application.
01:19:33.334 INFO - Application server port 8443.
01:19:33.343 INFO - Enabling HTTP API.
01:19:33.343 INFO - HTTP API port 8080.
01:19:33.345 INFO - Enabling HTTPS API.
01:19:33.349 INFO - HTTPS API port 9443.
01:19:33.354 INFO - Enabling HTTPS for admin UI.
01:19:33.358 INFO - HTTPS admin UI port 7443.
01:19:33.358 INFO - Enabling Web Sockets.
01:19:33.358 INFO - Web Sockets port 8082.
01:19:33.358 INFO - Enabling Web SSL Sockets.
01:19:33.362 INFO - Web SSL Sockets port 8081.
01:23:06.458 ERROR - WARNING. Unsecured connection attempt. Channel : /192.168.1.12:41578. Reason : javax.net.ssl.SSLHandshakeException: null cert chain

What could be the problem and how to solve it?
Thank you

Hello, may you please try latest server version and app?

I use latest version server-0.12.6 and latest app too.

Have you tried generating the certificates? They may help with the error.

I generated my certificates. And tried to use them.
I removed references to them from the file server.properties and it worked.
Thank you very much for your help.
I will deal with their certificates.

Hi rangus,

Can you help me for generating certificate, can you give me some steps how to create.

Thanks and regards,
Richard

It’s documented pretty clear here: http://docs.blynk.cc/#blynk-server-advanced-local-server-setup-generate-ssl-certificates

If you are on linux it should be like there. Also on Windows you could install openssl ad it would work pretty much the same way.

Ill try lichtsig, thanks for the support guys. Im planning to install the server apps in the voyo mini pc. Any one of you guys tried it already? Or im the first one to do this kind of experement.
I dont think so if issues will compup.

You are probably the first, but Java is really good compatible across platforms, so if Java runs fine on it, I foresee no issues. And if you do have issues, you know where to find us :wink:

Yeah sure, ill keep in touch to our community.

Hi, makuto20!
Installing OpenSSL from sources is not a trivial task.
After a while I left this.
I installed binary OpenSSL from here https://wiki.openssl.org/index.php/Binaries
and commands from blynk docs page http://docs.blynk.cc/#blynk-server-advanced-local-server-setup-generate-ssl-certificates

Hi Rangus,

Finally fixed the ssl cert error, thank you for the support, and many thank to blynk and blynkers family.

Best Regards,
Makuto, Richard