I store certificate (as SecIdentity ) in keychain because my application needs clientCertficate.
I know when a User uninstall application, keychian content still exist.
But in My application, I manage userInformation client certificate and CoreData.
So, I want to delete keychain content when user uninstall application for not occering mismatch between Keychain and CoreData.
Is it possible to do above ?
Or should I delete keychain content when the app re-installed ?
Can I delete keychain content when User uninstall App?
Not directly.
I know when a User uninstall application, keychian content still exist.
FYI, that’s an implementation detail that could change in the future. There’s a long backstory to this issue; see this post for details.
So, I want to delete keychain content when user uninstall application for not occering mismatch between Keychain and CoreData.
What’s the specific concern here?
Are you worried about the security aspects of this, that is, you’re ‘leaking’ credentials into the keychain?
Or are you worried about the correct aspect of this, that is, your code might fail if Core Data says there’s a keychain item and there isn’t, or vice versa?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"