This guide will help you generate the RSA key pair
To use our API securely, you'll need to generate an RSA key pair consisting of a private key and a corresponding public key.
This process can be done using OpenSSL.
Those keys are used to generate and verify digital signatures.
Here are the commands and steps to generate the keys:
Step 1: Generate a Private RSA Key
Use the following command to generate a private RSA key with a 4096-bit key size:
openssl genrsa -out private.pem 4096
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCRtW4XDiD5ml/a
YLUSkbaBqk4JZSn7xdv8ONOT9ZEmgU5n44YpnsNnOWAZWViBjn1Pj58dL9oZdBEh
giAfeytrXvHY9dyA4VxYlvIAv2RL6xR6Px4+S39p4JPmLfZ0TbupX1PvB9ioF3Mo
492EfM32nyjtI5CCbJizDoV2KhD7MyEINPSAXfCJceoLO08xCvkJvVvq0OJk7RUo
2TvWpeGXWW2/Kqvrz9QuVMX2godTdPJsStT/W4cyLo9bCzKUkNl0RN8D6Wc0W+Qy
G7NrwxqB1BAnv9DfBA+5kaaMFMu3mNa2c1e2z5AI6RQaPPZcrTr6/wn21Z/6W0E1
8x03w65hTkLEQbv6mGm57Er8OF9U3JbPkDBqDKfoLgi7RxSj6zz1osxyDiGBJVkl
vkKRjorjKYvOBWn4zknuDYFJeTQv94JKQJ47L9E2zf+cmT1CUTNvvEGPAhMC/ekP
RfoBeas6VUpbg72i+OZen7xR1OH9hdPrGgLj6S4YEp6ewvAfhV3r2WWYWGd4TKR4
Q5RBIC2uY+btSzQNKlehSOKKZ3x4Ww1XfCpJUctXWNp2WSG6xh2ZaEO92uoeheiX
9Plo38Q/ceinMWs3LTDTUMJJa/48OPHmLoyaFNhNgj0yVKZWw9QZTeDQJXcwJXBQ
W7bmPN4DBm4857+8vIz+k4HjYDyJtQIDAQABAoICAAd+qJIBBQsxuJp3/PhejF+x
DeCH1pf/vmgD2EY1DGlJn2nSlzUO2Ig3uEy1fsrzNFjiT1HmAzbp9HOfyN01ra8R
LCl3xAbRELnx0bLeJV+OUPhUxM55fa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yyU5nTynrln1q17KcR0cYhzvfw9RWN3ZA5zrt
vaSBUFKGGWQAHheUX1AmPYmnx7tHmN6PL1H4UaZm90Gz1fUqpcJrWgahVefnCVFb
dMpUvh9vMCfqJqP4RaSQfKu9uZbKBKuDasuiiYgTT5zdCRq9n+460jIgbv7Ct58r
U4YyLLIpHRRiVfBeI5IVVdX29wSdgg==
-----END PRIVATE KEY-----
Step 2: Generate a Corresponding Public RSA Key
To generate the corresponding public RSA key from the private key, use the following command:
openssl rsa -in private.pem -outform PEM -pubout -out public.pem
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAkbVuFw4g+Zpf2mC1EpG2
gapOCWUp+8Xb/DjTk/WRJoFOZ+OGKZ7DZzlgGVlYgY59T4+fHS/aGXQRIYIgH3sr
a17x2PXcgOFcWJbyAL9kS+sUej8ePkt/aeCT5i32dE27qV9T7wfYqBdzKOPdhHzN
9p8o7SOQgmyYsw6FdioQ+zMhCDT0gF3wiXHqCztPMQr5Cb1b6tDiZO0VKNk71qXh
l1ltvyqr68/ULlTF9oKHU3TybErU/1uHMi6PWwsylJDZdETfA+lnNFvkMhuza8Ma
gdQQJ7/Q3wQPuZGmjBTLt5jWtnNXts+QCOkUGjz2XK06+v8J9tWf+ltBNfMdN8Ou
YU5CxEG7+phpuexK/DhfVNyWz5Awagyn6C4Iu0cUo+s89aLMcg4hgSVZJb5CkY6K
4ymLzgVp+M5J7g2BSXk0L/eCSkCeOy/RNs3/nJk9QlEzb7xBjwITAv3pD0X6AXmr
OlVKW4O9ovjmXp+8UdTh/YXT6xoC4+kuGBKensLwH4Vd69llmFhneEykeEOUQSAt
rmPm7Us0DSpXoUjiimd8eFsNV3wqSVHLV1jadlkhusYdmWhDvdrqHoXol/T5aN/E
P3HopzFrNy0w01DCSWv+PDjx5i6MmhTYTYI9MlSmVsPUGU3g0CV3MCVwUFu25jze
AwZuPOe/vLyM/pOB42A8ibUCAwEAAQ==
-----END PUBLIC KEY-----