The OS seems to be incorrectly listing multiple identities, even though only one was installed.
Here are my keychains (security list-keychains)
"/Users/mateuscb/Library/Keychains/login.keychain"
"/Library/Keychains/System.keychain"
I list identities, and it comes back with zero identies.
I then import it via the following command line:
security import "~/mycert.p12" -k "/Users/mateuscb/Library/Keychains/login.keychain" -t cert -f pkcs12 -P password`
When I list identities, I now get this (security find-identity):
Valid identities only
1) 7E0B7E829EBF27EEC57CC796F948D7C2D9A91330 "Developer ID Application: The Company Inc."
2) 7E0B7E829EBF27EEC57CC796F948D7C2D9A91330 "Developer ID Application: The Company Inc."
even more weird, is if specifying the keychain, I only get one (security find-identity login.keychain). And the System.keychain is always empty.
I've also rest my keychains (KeyChain access) multiple times.