This guide explains how to generate and manage API key paris and app key pairs using Cobo CLI. All keys are used for authenticating with Cobo WaaS 2.0.Documentation Index
Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
Use this file to discover all available pages before exploring further.
Generate keys
Use thekeys generate command to generate a new API key pair (an API key and an API secret) or an app key pair (an app key and an app secret).
Usage
Options
--key-type <key_type>: Specify the type of key to generate (APIorAPP). Default isAPI.--alg <algorithm>: Specify the key generation algorithm. Default ised25519.--force: Force replacement of existing keys.
Example
Generate a new API key pair:Key storage
Generated keys are securely stored in your configuration file (default:~/.cobo/config.toml).
Best practices
- Regularly rotate your API key pairs or app key pairs to maintain security.
- Use different keys for the development and production environments.
- Limit the permissions associated with each key to the minimum required for its intended use.
- Monitor key usage and revoke any keys that may have been compromised.
