What is an RSA Key Pair?
RSA is a type of asymmetric cryptographic algorithm widely used for securing data on untrusted networks. Unlike symmetric encryption where both parties share a secret key, RSA uses two mathematically linked keys:
A Public Key, which can be shared
A Private Key, which must be kept secret and only known to you
This method ensures that even if the public key is exposed, the private key is still required to authenticate or decrypt the communication. On 3Commas, this adds an extra layer of protection when interacting with your account via API.
Why use RSA Key Pairs on 3Commas?
3Commas now supports signed API requests using RSA keys, which means you can connect external apps, scripts, or trading programs in the most secure way possible.
This method is available under the "Self generated" option in the API Access Token page.
It is the recommended approach for developers who want full control over their security.
How to Generate an RSA Key Pair
You can create an RSA key pair using:
Command Line tools (such as openssl)
Binance’s official key generator (recommended if you're familiar with it)
For step-by-step instructions and code examples, visit our 3Commas API page.
How to Register Your Public Key on 3Commas
Follow these steps to register your RSA public key and start using signed API requests:
Go to the API Access Token page on your 3Commas account.
Click New API access token.
Select Self generated as the connection type.
Fill in the required fields:
Token name
Trusted IPs
Public key
Click Create.
Want to Sign Requests and Send API Calls?
For signing logic, request structure, and sample code, see: