Administer Keychains, keys, certificates and the Security framework. More information: https://ss64.com/osx/security.html.
security list-keychains
security delete-keychain {{path}}
security create-keychain -p {{password}} {{keychain.name}}
security set-identity-preference -s {{URL|hostname|service}} -c "{{common_name}}" {{path/to/file.keychain}}
security add-certificates -k {{keychain.name}} {{path/to/file.pem}}