Hello,
I have my HTTPS proxy for my HTTP REST server. Both running on my development computer.
I setup HTTPS proxy following instructions here: https://twigstechtips.blogspot.com/2016/01/nginx-how-to-set-up-ssl-reverse-proxy.html
These instructions makes you generate two certificate files. KEY and PEM files. I added that PEM file in my project resources as resource type RCDATA and used identifier "my_ca".
I used below link to prepare my security config xml
https://stackoverflow.com/questions/56301765/self-signed-certificate-in-android-application-of-rad
Using "@raw/my_ca" as in that stackoverflow question is failing with below error (while packaging the app) when I try to debug run the app.
network_security_config.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@raw/my_ca/')
So, I prepared my XML file as following:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config>
<domain includeSubdomains="true">yourdomain.com</domain>
<trust-anchors>
<certificates src="my_ca"/>
</trust-anchors>
</domain-config>
</network-security-config>
When I try to access my REST server like https://192.168.1.152/...
I get following error
Failed to parse XML configuration from network_security_config
On the other hand, I can get results just fine using identical URL and Postman on Windows OS.
I simply failed to figure how to add that self signed certificate in my app package and use it.
Any help is appreciated.
Thanks & Regards,
Ertan