Hi, I haven't tried it, but there is a 'dump-keychain' command for security(1) that might do what you want:
security dump-keychain -d [keychain] > keychain.txt Where [keychain] is the name of the keychain you want export (for example 'login.keychain'). Best, -ranga > On Jun 7, 2023, at 06:22, René J.V. Bertin <rjvber...@gmail.com> wrote: > > Hi, > > I'm looking for some code that will allow me to export the entire contents of > Apple keychains, if possible directly in a way that I can import the data in > another cross-platform utility. > I should be able to write something based on the "security" (example?) tool > but would of course prefer to use an already tested library. > > Any suggestions? > > Thanks, > René