Utility to manage macOS keychains and certificates
keychain [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
[-p PATH]
ACTION
Keychain path. If not provided, the system default keychain will be used instead
show this help message and exit
Log output stream. Default stderr
Do not use ANSI colors to format terminal output
Show tool version and exit
Disable log output for commands
Enable verbose logging for commands
Action | Description |
---|---|
add-certificates |
Add p12 certificate to specified keychain |
create |
Create a macOS keychain, add it to the search list |
delete |
Delete keychains and remove them from the search list |
get-default |
Show the system default keychain |
initialize |
Set up the keychain to be used for code signing. Create the keychain at specified path with specified password with given timeout. Make it default and unlock it for upcoming use |
list-certificates |
List available code signing certificates in specified keychain |
lock |
Lock the specified keychain |
make-default |
Set the keychain as the system default keychain |
set-timeout |
Set timeout settings for the keychain. If seconds are not provided, then no-timeout will be set |
show-info |
Show all settings for the keychain |
unlock |
Unlock the specified keychain |
use-login |
Use login keychain as the default keychain |