Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?
Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?
Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?
You basically have four potential solutions to fix a “Not Trusted” exception on Android using httpclient: Trust all certificates. Don’t do this, unless you really know what you’re doing. Create a custom SSLSocketFactory that trusts only your certificate. This works as long as you know exactly which servers you’re going to connect to, but as … Read more
Android 8: Cleartext HTTP traffic not permitted
I used XMLHTTPRequest(). Seems pretty standard now and obvious for REST API. WebSocket() object for was.
httplib is for the job, and you may refer to the example code at the bottom of the document. and google for the httplib sample code.