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 (API
orAPP
). 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
).
Never share your API secret or app secret. Keep it secure and use the API key only when registering it on Cobo Portal.
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.
Feel free to share your feedback to improve our documentation!