Error connecting to sync server: javax.net.ssl.SSLHandshakeException

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Error connecting to sync server: javax.net.ssl.SSLHandshakeException

Post by parthsaha »

Dear All,

I have a CSWeb app which is working on few mobile phones without any problem. My CSWeb is hosted on godaddy with SSL (letsencrypt) properly configured.

But, in one mobile "Redmi Note 4" with Android 7 version which was bought in 2017, I am getting the following error :

"Error connecting to sync server: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.."

Please help, how I can rectify the problem!

Thanking you all in advance!

Parth Saha
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Error connecting to sync server: javax.net.ssl.SSLHandshakeException

Post by aaronw »

I think the issue has to do with the SSL certificate. Take a look at this post:
https://www.csprousers.org/forum/viewto ... tion#p8569
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Re: Error connecting to sync server: javax.net.ssl.SSLHandshakeException

Post by parthsaha »

Dear aaronw,

The post referred to is concerned with self signed certificates. But the certificate, I am using, has been issued by a CA named letsencrypt.

And, moreover, this problem is with only particular to that mobile.

So, I think, there is something else going on here, which I am unable to decipher.

May be @josh or @martin may be able to help!

Anyways, thanks for reply.

Parth
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Error connecting to sync server: javax.net.ssl.SSLHandshakeException

Post by aaronw »

The first link Josh provided gave quite a bit of context that might be helpful for tracking down the issue: https://developer.android.com/training/ ... curity-ssl

The issue may have a couple different causes and the issue may be with the creation of the SSL certificate. I think you may need to do a bit of digging and try a few different things.

Here's one search result I would take a look at:
https://community.letsencrypt.org/t/let ... roid/58867
savy
Posts: 159
Joined: December 27th, 2012, 1:36 pm

Re: Error connecting to sync server: javax.net.ssl.SSLHandshakeException

Post by savy »

You may be having an issue with Android 7.0 compatibility isssue with letsencrypt. Please check this post to resolve your certificate issues.
https://community.letsencrypt.org/t/and ... ion/152050
Post Reply