Take the 2-minute tour ×

I would like my app to connect to an https site, without user input required. So, I would like to send the app a certificate that the app will install in the keychain, and allow it to connect to the https site without the user getting involved.

How can I do this?


share|improve this question
add comment

1 Answer

Applications are not able to install certificates to the keychain for security reasons.

Otherwise malicious programmers could install a certificate that authenticates phishing sites.

share|improve this answer
In theory, applications should be able to install certificates that apply for UIWebViews and NSURLConnections inside the app only, but I'm not sure there's a public API for that. –  rpetrich Feb 23 '10 at 15:54
From my understanding of the public API, in order to do that you also have to implement your own certificate validation in a subclass of NSURLConnection since none of the TLS connection classes are public. –  Benoit Mar 7 '10 at 21:35
add comment

Your Answer


