I’m trying to access an rest server running nginx (using axios) with a self-signed certificate (for development purposes).
It’s working from within the browser, but failing when running on Android. It just returns an Request aborted without any information:
chunk-vendors.fa7cefd0.js:1 Uncaught (in promise) Error: Request aborted at t.exports (chunk-vendors.fa7cefd0.js:1) at XMLHttpRequest.v.onabort (chunk-vendors.fa7cefd0.js:33)
Online I’ve read that this is caused by invalid certificates. Things I’ve done to resolve:
- Went to the browser (on my phone) and accepted the security risk from this unknown certificate.
- Installed .p12 file on my phone (as app certificate) that i’ve created using my .crt and .key file
I still get the aborted error
So I need to tackle the root issue, but I don’t know what that is and how to resolve.
Anyone who has experience with certificates, openssl, android, capacitor and nginx all together? Any help is appreciated.