Android SSL WebSocket


#1

I’m trying to use WSS with LE certificate.
I’m using node.js to setup the server. Everything is configured properly on the server (i think).

Using a WebClient like Chrome i can connect to the secure WebSocket, but i’m developing also an Android app that relies on the same server, but i get an expection:

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

I’m using Android Studio on OSX 10.11.3 - Java 8 build 71


#2

Are you serving the chain with the Let’s Encrypt intermediate certificate? Did you configure the use of chain.pem or fullchain.pem, not just cert.pem?

Desktop browsers often don’t complain when the intermediate certificate is missing because they can cache it if they saw it on another site.


#3

I didn’t as i only set the cert and the key, thanks, now it is working.