Can a third-party application access the iPhone keychain to add the X509 certificate? If so, how can this be done?
If not, can he access the key chain for read-only certificates?
Basically, I need:
1) my application needs to access the https site, which uses a certificate that is not signed by any trusted CA. when I try to connect via https, I get an exception.
2) it would be great if I could programmatically add a root certificate to the key chain; it would be enough if the user could access the site through Safari, accept his certificate and then access the site using my application.
So far, I have used the following interface to outperform https:
@interface NSURLRequest (DummyInterface) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host; + (void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host; @end
but that’s not quite what I want.
Any suggestions?
source share