security

Administer keychains, keys, certificates and the Security framework. More information: https://keith.github.io/xcode-man-pages/security.1.html.

security list-keychains

security delete-keychain path/to/file.keychain

security create-keychain -p password path/to/file.keychain

security set-identity-preference -s URL|hostname|service -c "common_name" path/to/file.keychain

security add-certificates -k file.keychain path/to/cert_file.pem

security add-trusted-cert -k path/to/user-keychain.keychain-db path/to/ca-cert_file.pem

security remove-trusted-cert path/to/ca-cert_file.pem