Keychain
Summary
The keychain contains secret information necessary for Cosnim’s operation. Cosnim needs at least a default encryption key block in a keychain to encrypt the capsules’ contents and public names. The keychain may also contain:
One or more encryption key blocks.
Cloud access credentials.
A private key to sign data and to authenticate to relays and gateways.
Public keys for relay/gateway client authorization.
A keychain is created with the command:
cosnim create keychain
By default, this creates a keychain at the location configured for the continuum. See the command reference for details.
Keychain File
The keychain is a single flat file that you can copy and move as you wish. The contents of a keychain shouldn’t change much after initial creation and population. You should keep a copy of your keychain in a safe location. You cannot access a continuum without a keychain and at least one encryption key block.
Passphrase
A keychain can be protected with a passphrase. In this case, the entire keychain is fully encrypted
with powerful algorithms to prevent unauthorized access. This is the default when creating a
keychain. You may add, change and remove the passphrase with the cosnim update keychain command.
When a keychain is protected with a passphrase, you’ll be prompted for the passphrase each time you run a Cosnim command that needs it. To avoid this inconvenience, you may take a copy of your keychain, remove the passphrase, and store this copy in a very secure location on your machine to be used when running Cosnim commands.