haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 60 forks source link

Check certificates in login keychain on macOS? #109

Open luke-clifton opened 5 years ago

luke-clifton commented 5 years ago

By default security searches in the System and login keychains.

Perhaps we should use

security list-keychains

to determine which keychains to search in addition to the System roots?

luke-clifton commented 5 years ago

Related to https://github.com/vincenthz/hs-certificate/issues/49

luke-clifton commented 5 years ago

Or perhaps run the security utility twice, once with the Root keychain, and once with no keychain specified so that the users preferences are honored.