Java native launcher, SSL and RSA premaster secret error - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jeandur
Posts: 3
Joined: Mon May 13, 2013 7:44 pm

Java native launcher, SSL and RSA premaster secret error

Hello,

I use Advanced Installer 10.1 with a JavaFX application. To run this application I use the native launcher and an embedded JRE1.7 in a 32 bits context.

Everything was running correctly till I added to my application the possibility to load a truststore to allow https communication.

My application is running correctly from inside Eclipse an does https exchange without problem.

But as soon I deploy it an run it with the native launcher, I get the error "javax.net.ssl.SSLKeyException: RSA premaster secret error".

After some readings, I came on an Unlimited JCE Policy JDK7 possible problem. I update my embedded jre but without any success.

I try to load the truststore from inside my java code by setting the javax.net.ssl.trustStore and the javax.net.ssl.trustStorePassword programmaticaly.

Any idea about a way to solve this will be greatly appreciated !

Thanks in advance.

Jean
jeandur
Posts: 3
Joined: Mon May 13, 2013 7:44 pm

Re: Java native launcher, SSL and RSA premaster secret error

The origin of the problem is the pack200 option !

I did spend a long time to discover what was happening.

The signed sunjce_provider.jar was modified by the pack200 process and after that the SHA1 couldn't be verified ...

Advanced Installer should warn the user about that ...


Jean
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Java native launcher, SSL and RSA premaster secret error

Hi Jean and welcome to Advanced Installer forums.

I'm glad you got this working. We'll consider your suggestion for adding this improvement in the future.

Thank you for your suggestion.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”