In my app, I have ca.crt in resources folder and I want to install it for the whole system (with user's acceptance).
I've tried:
NSString *path = [[NSBundle mainBundle] pathForResource:@"ca" ofType:@"crt"];
NSURL *url = [NSURL fileURLWithPath:path];
[[UIApplication sharedApplication] openURL:url];
but nothing happened.
[[UIApplication sharedApplication] canOpenURL:url];
returns false.
If I put cert on my web server and open it from Safari, everything works perfect (new system popup appears and ask me if I want to install CA cert). I need to repeat this behavior in app - is it possible?