SSLHandshakeException while calling webservice through volley library - android

I am getting this exception
com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertPathValidatorException: Trust anchor for certification
path not found.
from volley while accessing web service in some devices. I have searched a lot, but certificate of SSL is properly inserted in server side. Is there anything else to do in android side?
Thanks in advance.

Related

Problem with SSL certificate on Android 4.4: Trust anchor for certification path not found

I do know why but my app on Android 4.4 (HTC 626) couldn't connect to my site. The problem occurs and from the app using URLConnection and OkHttpClient and when I try to open a site in Chrome ("Connection is not private").
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Certificate issued by Sectigo. SSL Checker doesn't show problems with a certificate on the server. The problem does not occur on Android 9 (Samsung A50). I suppose to try another CA. Any ideas?
The problem was solved by replacing the Comodo (Sectigo) Positive SL with the Thawte SSL123. It is not advertising. Both certificates were installed by one specialist, so I do not think there was wrong nginx configuration.

Trust anchor for certification path not found when using API

I’m making a news app and I’m using newsapi.org to get the news. I tried my app on the emulator and on one device and it works correctly but then I tried it on another device and I get this error: Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. Does anyone know why this might be happening?
Thanks in advance!

Enable Xamarins.Forms App to Trust IIS Express Development Certificate

I'm developing my first Xamarin.Forms App and have a backend API built using ASP.Net Core. I want all calls to the API to be via HTTPS so followed this guide for setting up HTTPS for development in ASP.NET Core. This, I believe, will let me use the IIS Express Development Certificate from within Visual Studio.
Up to this point I had been making all calls to the API from my Xamarin.Forms Android App via the emulator using HttpClient and the following http uri
http://10.0.2.2:44321/api/User
but now with SSL enabled for my API I need to make the call from the app using the following uri
https://10.0.2.2:44321/api/User
However, simply changing http to https gives the following error
{Javax.Net.Ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. ---> Java.Security.Cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. ---> Java.Security.Cert.CertPathValidatorException: Trust anchor for certification path not found.
--- End of inner exception stack trace ---
I presume this is because the the Xamarin.Forms App does not list the IIS Development Certifcate as being trusted, i.e., with Swagger (Swashbuckle) running from my API I can hit the endpoint with no problems; with postman running with SSL certificate verification turned off I can also hit the endpoint.
How can I setup a Xamarin.Forms App (specifically Android) to trust the IIS Development Certificate for development purposes?

javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found on Android 2.2

I am getting this issue when i replace my url with https...my url with http working fine but with https it's crashed,i search internet but not find any solution
You are probably using a CA for your certificate which is not known as trusted in the very old version of Android you are trying. More details might be given if you provide your URL.

call webservice over HTTPs in android using ksoap2

Hi all i am working on web services in android using ksaop2 library, i have done with http but when try over https then i got exception
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
my wsdl file is asking username and password to open
Can you please help me how to call web service over ssl

Categories

Resources