Keychain Access

Is it possible to access the Safari keychain or apple system keychain from a custom app?

Answered by DTS Engineer in 750647022

Is it possible to access the Safari keychain or apple system keychain from a custom app?

That depends on the platform. On iOS and its child platforms, the answer is a very simple “No.” On macOS things are more subtle. If the system service uses the data protection keychain, it’s the same answer as on iOS. If it uses the file-based keychain, third-party apps can access the keychain items but such access is subject to user approval.

For more on the terminology I’m using here, see TN3137 On Mac keychain APIs and implementations.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Is it possible to access the Safari keychain or apple system keychain from a custom app?

That depends on the platform. On iOS and its child platforms, the answer is a very simple “No.” On macOS things are more subtle. If the system service uses the data protection keychain, it’s the same answer as on iOS. If it uses the file-based keychain, third-party apps can access the keychain items but such access is subject to user approval.

For more on the terminology I’m using here, see TN3137 On Mac keychain APIs and implementations.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for your reply,

My goal is to fetch the certificate from the settings app as safari, is it possible to achieve it in my custom app, or do I have to use the certificate inside my project?

My goal is to fetch the certificate from the settings app as safari

It’s still not clear what platform you’re targeting?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

My target is iOS devices ( iphones and ipads)

Keychain Access
 
 
Q