New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL issues with generated native installers for Linux #168
Comments
You're most likely using a self signed certificat and forgot to add the cert to your trust store. I would suggest using a valid ssl cert seeing as they are virtually free these days. |
"Unfortunately" it is a valid Let's Encrypt Certificate and the one for my app is also a valid one. |
It seems your JDK doesn't agree :) Maybe you're running an old Java version what doesn't accept the Let's Encrypt cert? You can easily try this from a Java program running the same JDK. |
It seems like that ^^ |
Please write a oneliner Java app using the same syntax that tries to fetch a resource from that server. I'm pretty sure you'll get the same error message :) |
Sure after the meeting i will and report you back. Thanks for taking the time and your patience. |
No problem. Interested to see what the issue turns out to be! |
Sorry that it took so long (a wild beer appeared). I then bundled the app with fxlauncher and again when executing the fxlauncher.jar with the comand line everything is fine. But when executing the generated binary or installing the generated .deb file, i get those sslHandshake exceptions. But what i noticed (didn't before), during packaging, javapackager print's this: So i guess it's javapackager not using the correct jre for bundling then? Am i right or am i heading completely in the wrong direction? For reference the main class of the sample app:
|
Try adding -Bruntime="path/to/jdk”. Sorry for short answer, traveling/on my phone :) |
yeah i just now came to the same idea. I will now try to add that to the |
Adding Cool! Thank you very much for your help and support! I really appreciate it! |
Great! I believe the default will be extracted from whatever java.home points to btw :) |
Hmm strange. Because when i print the java.home dir path from inside the application (using I will look into that when i have more time :-) Will close this issue now :-) |
Thanks for reporting back! Never had issues with this, apart from setting the right path and JAVA_HOME env setting, but nice to have documents the explicit parameter if anyone else should run into this. |
If i build a native installer for Linux, i get SSL handshake exceptions for all network requests using https. Both for the Launcher and my own application.
When i execute the generated jar file everything works as expected. Also the native installers for MacOS and Windows work as expected.
Java version is:
jdk1.8.0_212
Linux Distro is: Kubuntu 19.04 with kernel
5.0.0-19-generic
What am i doing wrong?
The text was updated successfully, but these errors were encountered: