Requests with https fail but same request using http succeed

I have a backend server that is accessible on two ports - one with HTTP and another with HTTPS. It uses a self-signed certificate.

From my app when I run using HTTP requests they all succeed. During first request I also include a basic authorization. However, the same requests fail when using HTTPS.

(From a regular chrome browser on android, when I visit the same https url, I first get a chrome warning page for unsafe sites, and then can get to the content.)

I wonder how to proceed. Do I need to register the self-signed certificate somewhere in config, and how?

Thanks a lot.

Hi @dines, did figure it out?

I have the same error, did you solve it?