SYSTEMKEYCHAIN(8) System Manager's Manual SYSTEMKEYCHAIN(8)

systemkeychaincreates system keychains and allows keychains to unlock keychains

systemkeychain [-fv] [-k filename] [-C] [password]

systemkeychain [-fvc] [-k filename] [-s] [file ...]

systemkeychain [-v] [-k filename] [-t]

The systemkeychain can be used to create a system keychain, make it possible for a keychain to unlock another keychain, or test unlocking a keychain.

The options are as follows:

Create a keychain and establish it in the system as the primary system keychain whose unlocking is automatically handled by the system. The new keychain is empty. If the optional password argument is given, the keychain can be also be unlocked with that; otherwise, the keychain has no password and can only be unlocked by the system. The optional password option is generally used for testing purposes, and using it is not recommended.
Extract the master secret from source keychain(s) and install them in a destination keychain to allow unlocking.
Test unlocking the system keychain.
systemKeychain
Use a keychain other than the default as the destination system keychain.
Create the target keychain if necessary.
Force creation of a system keychain or overwriting of an existing key for keychain unlocking keychain operations.
Turn on verbose mode.

By default, systemkeychain works with the keychain file stored at /Library/Keychains/System.keychain . Use of the -k option can specify a different target file.

Use of the -s option allows keychains to be setup to unlock other keychains. Chains of keychain unlocks can be setup in this manner to make a series of keychains unlock while only needing to manually unlock the first one. This functionality can be verified with the -t (test unlock) option.

/Library/Keychains/System.keychain
 

The systemkeychain utility exits 0 on success, and >0 if an error occurs.

The systemkeychain command appeared in Mac OS 10.2.0 .

March 14, 2006 Mac OS X 12