Generate and exchange callback keys
1. Generate callback server keys
On your callback server, generate an RSA key pair:- Generate a private key:
- Configure the private key on the callback server because you will need to use it to sign the callback response.
- Export the public key:
2. Get the TSS Node’s callback public key
After initializing your TSS Node, retrieve its callback public key:3. Exchange public keys
- Copy your callback server’s public key to your TSS Node’s installation directory, such as:
- Copy the TSS Node’s callback public key to your callback server’s configuration
Configure TSS Node settings
Modify thecobo-tss-node-config.yaml
file on your TSS Node to include the callback server’s URL, public key, and other callback-related settings.
You can configure multiple callback servers for enhanced security. The TSS Node will only execute a task if all configured callback servers approve it. The following example shows how to configure if you have two callback servers:
Configuration parameters
cb_server
: A list of addresses of the TSS Node callback servers that receive the v1 version of the callback request. While still supported, we strongly recommend using thecb_server_v2
option instead, as it provides more comprehensive request information and is more compatible with the WaaS 2.0 API.cb_server_v2
: A list of addresses of the TSS Node callback servers that receive the v2 version of the callback request.service_address
: HTTP endpoint of your callback server.pubkey_path
: Path to your callback server’s public key file.
token_expire_minutes
: JWT expiration time in minutes.retry_times
: Maximum number of retry attempts for failed requests.sleep_seconds
: Delay between retry attempts in seconds.request_timeout
: Timeout duration for HTTP requests in seconds. Specifies how long the TSS Node waits for a response from the callback server before considering the request timed out.monitor_interval
: Specifies how often the TSS Node checks the callback server’s status. Uses
for seconds,m
for minutes, orh
for hours (e.g.,30s
,5m
,2h
). If omitted, status monitoring is disabled.
Verify configuration
After configuring both servers:- Start your callback server
- Start your TSS Node
- Test the connection by initiating a task request
- Verify the callback flow
Next steps
Feel free to share your feedback to improve our documentation!