iOS – All about keychain

Is the local keychain removed when an app is uninstalled?

No, the local keychain is still there.

  • Access to the keychain is tied to the provisioning profile used to sign the app.
  • It will be deleted if the device is wiped.

How to remove keychain when an app is uninstalled?

Check if the app is first time installed, then manually remove the Keychain storage before display the app screen

Is UserDefaults (unsecured storage) removed when app is uninstalled?

Yes

Is UserDefaults (unsecured storage) removed when app is updated?

No

How to import .p12 into your keychain?

security import your-private-key.p12 -k ~/Library/Keychains/login.keychain -P your-password

Be the first to comment

Leave a Reply

Your email address will not be published.


*