I need to get the certificates from the iOS built-in (X.509) certificate store, and be able to read/parse them in order to decide whether to trust a server or not. Any idea what the APIs are to do this?
Thanks!
iOS will do all the trust evaluation for you.
The iOS Certificate, Key, and Trust Services Reference is a good place to start.