Install certificats to the macOS keychain
/mnt/test.p12:
keychain.installed:
- password: test123
Set the default keychain to use
The chain in which to use as the default
The domain to use valid values are user|system|common|dynamic, the default is user
The user to run as
Install a p12 certificate file into the macOS keychain
The certificate to install
The password for the certificate being installed formatted in the way described for openssl command in the PASS PHRASE ARGUMENTS section
The keychain to install the certificate to, this defaults to /Library/Keychains/System.keychain
Allow any application to access the imported certificate without warning
If your keychain is likely to be locked pass the password and it will be unlocked before running the import
Uninstall a p12 certificate file from the macOS keychain
The certificate to uninstall, this can be a path for a .p12 or the friendly name
The password for the certificate being installed formatted in the way described for openssl command in the PASS PHRASE ARGUMENTS section
The friendly name of the certificate, this can be used instead of giving a certificate
The keychain to remove the certificate from, this defaults to /Library/Keychains/System.keychain
If your keychain is likely to be locked pass the password and it will be unlocked before running the import