Sunday, July 7, 2024

macos – Deleting a number of keychains from Keychain Entry

On macOS 10.14.6 Xcode 11.3.1 has been busy creating keychains (and keys, and certificates) in an countless loop whereas making an attempt to “Robotically Handle Signing”. It creates keys in new keychains, and likewise within the login keychain concurrently (for some motive).

I do not need a whole lot of identically named keychains within the Keychain Entry UI, however not like the keys within the login keychain I can not choose a number of keychains within the sidebar to mass-delete them. I do not discover the prospect of deleting them one after the other very interesting, significantly since Xcode can resolve to proceed the subsequent time I choose automated signing.

I attempted deleting the keychains from disk (positioned below /personal/var/folders/p5/<some id>/T), however that did not have an effect on the Keychain Entry database.

I do not know why:

  • Xcode is creating and revoking certs in a loop
  • Xcode is creating keys in new keychains in addition to within the login keychain — why not simply the login keychain?
  • Whether or not creating keychains in /personal/var/folders/p5/<some id>/T is smart or indicative of an issue (looks like a temp listing to me — one thing flawed with my private keychain library listing?)
  • Whether or not cleansing up the Keychain Entry DB would assist Xcode in any respect
  • The right way to clear up the DB with out deleting a whole lot of keychains one after the other (which will not even all the time delete)

Can I one way or the other choose and delete a number of keychains from the DB?

Recommendations welcome as as to if I ought to focus on one other facet of the issue. I am not fairly positive what to anticipate almost about Xcode’s habits and site of its keychains, however I suppose I can examine listing permissions of ~/Library/Keychains within the meantime.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles