B4J Question SSLHandshakeException after installing new SSL Certificate

dieterp

Active Member
Licensed User
Longtime User
I installed a new SSL Certificate on my server today and my B4J apps are now getting the "SSLHandshakeException" error. I have added the "#PackagerProperty: IncludedModules = jdk.crypto.ec" property and have also tried using the latest version of Java (As per several recommendations in other posts) but the problem persists. Does anyone have any idea of what I can do to fix the problem?
 

DonManfred

Expert
Licensed User
Longtime User
To less informations here.
How is the certificate configured in your app?
Note that this must be redone/updated with the new certificate.
 
Upvote 0

dieterp

Active Member
Licensed User
Longtime User
I have an api running on my server that my B4A and B4J apps use to communicate with a MySQL database (Which then populates a website). Everything was working fine until I had to renew the SSL certificate for the website, and now I get the following error message when I try call an endpoint on the api through the B4J apps (The B4A apps have no issues):

B4X:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have never had to do anything in the B4J apps related to configuring SSL certificates to get things to work. I have tried the solutions mentioned in my first post but without success
 
Last edited:
Upvote 0
Top