I'm trying to load Data from a JSON API using the Volley Libary, which works just fine when using API level 30, but when I try to use the App on a device running API level 24 I get the following error:
Request failed: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
I alredy read this Post about a similar Problem, but for me it's not an option to change the configuration of the Webserver and as it works without any Problems on Devices with API Level 30 and above (and also every Browser I tried has no Problem with the Certificate), I think the problem might lie somewhere else. Is there anything I have to configure differently for it to run on older Versions of Android?
BTW, heres the Code I use for the API Request (Obviously I changed some stuff like the URL and how I handle the Stuff i get back, but that probably won't have an Influence on the problem I'm having so that should be fine)
val requestQueue = Volley.newRequestQueue(this.context)
requestQueue.add(JsonArrayRequest("https://subdomain.the.url",
{ response ->
//Handle Response
},
{ volleyError ->
//Handle Errors
}
))