Relative Content

Tag Archive for androidkotlinretrofit

OkHttpClient implementation security advice

I’m having issues getting my kotlin api 24 app to connect to my api endpoint. The issue is related to ssl trusting. I’ve already tried adding the certificate to jdk trust store, and adding it to res/raw and manipulating the xml file, but to no avail. I asked ai to write a custom trust manager. The issue is resolved but I can’t help but think this code will probably create security issues later on. Is this implementation ok? What can I do to improve it?

Retrofit data sending

It’s my first time trying to fetch data from the server in Kotlin using Retrofit so I’m sorry if the question sounds dumb to you.