Skip to main content
Public and private keys are cryptographic tools used to secure communication and authenticate users in digital systems. In the context of API access, these keys help ensure only authorized users can interact securely with your service. There are two recommended ways to generate your public-private key pair: using the SDK, or using OpenSSL from the command line.

Option 1: Using the SDK

1

Set up the SDK

Make sure you have set up the SDK.
2

Generate the key pair

Call the generatePublicPrivateKeyPair util function in the SDK.
3

Save your keys

This will return your keys as strings. Save them securely.

Option 2: Using OpenSSL (command line)

1

Install OpenSSL

Make sure OpenSSL is installed in your system.
2

Run the command

Run:
3

Save your keys

This will output your private key and then your public key. Copy and save them securely.