Hi,
Can I connect with a local server with self-signed cert that support the 2019 requirements? (https://support.apple.com/en-us/HT210176)
The app loads content on UIWebView from a local server, like 192.168.1.50 for example, with self-signed cert.
I have tried without success:
-
Install the custom CA in iOS (Settings -> General -> Profile)
-
Set into Info.plist the following configs:
- Allow Arbitrary Loads: YES
- Allow Arbitrary Loads: NO; Exception Domains: 192.168.1.50:8080; Allow Arbitrary Loads in Web Content: YES;
- Allow Arbitrary Loads: YES; Allow Arbitrary Loads in Web Content: YES; Allows Local Networking: YES
- Allow Arbitrary Loads: NO; Exception Domains: 192.168.1.50:8080; Allow Arbitrary Loads in Web Content: YES; Allows Local Networking: YES
Is it possible works as I pretend? Load web content in a UIWebView from a local server with self-signed certificate?
Please, some help for that.
Thank you in advance.
-
—
dakotadelnorte
Add a CommentI have following the next guide to generate the root ca (to install on iPhone) and the cert and key for the server using the previously root ca (https://developer.apple.com/library/archive/technotes/tn2326/_index.html#//apple_ref/doc/uid/DTS40014136-CH1-SECISSUE_C), this guide was recovered from a similar thread: https://developer.apple.com/library/archive/qa/qa1948/_index.html but that server were online, and my server is on LAN.