How to list certificates from iPhone keychain inside my application?

I am creating an iPhone application where we want to use x.509 certificates for client authentication. The user can install his certificate from e-mail ... It is displayed in the "Settings" → "General" → "Profiles" section ... However, I can not read this certificate from my application ...

I want to provide an interface similar to the Junos Pulse VPN client interface ... A configuration window that lists all the certificates in the device key chain and allows the user to select their identifier.

How do I achieve this?

+3
source share
3 answers

The Junos Pulse app appears to be accessing through the VPN plugin, which is a private API provided by Apple, by invitation only. This API provides access to these certificates, available only for embedded iOS applications such as Safari.

Check out the following, which were very useful when I studied the topic: iOS get configuration profiles that are installed (Apple Development post related in one of the answers) https://devforums.apple.com/message/660579#660579

+6
source

You cannot access this keychain. And, yes, use the search.

From Apple Docs:

iOS provides access to applications only for its own keychain items.

Read more here: Keychain Key Programming Guide

+2
source

Search is your friend. I used: iphone access keychain

-1
source

Source: https://habr.com/ru/post/1442742/


All Articles