Payout RSA Key Registration

Understanding RSA Keys

RSA keys can easily be generated from the command line of Linux, Macs, or Windows (via PowerShell). Generate following key pair to comply with Yaspa's payout security requirements which rely on asymmetric encryption:

  • Private Key: Use this key to sign payout requests in a secure environment. This key MUST be kept safe by the merchant, as it proves requests originated from the merchant server.
  • Public Key: Register this key with Yaspa so that it can be used to verify that any request signed with the private key. Public keys only provide Yaspa with the ability to verify payout requests originated from an entity with the private key (the merchant server) and therefore can be safely shared.

Creating RSA Keys

Follow this recipe linked below to create the key pair described above:

Registering the Public Key with Yaspa

Step 1: Make sure you have access to the Yaspa Admin Dashboard

A merchant representative who has access to the public RSA key will need to be given access to the Admin Dashboard with the FINANCE role enabled. Please contact your Integration Manager if you are unclear about this step or any of the following steps.

Step 2: Get a One Time Authentication Token

In the Admin Dashboard click on the Payouts tab or navigate to Company Settings ➔ API-keys. You will likely see a screen asking you to contact Yaspa for assistance.

Yaspa will enable the service and provide your designated member of staff an authentication token to setup Payouts. This code is a short string which can be entered into the Admin Dashboard.

Step 3: Set Up Google Authenticator

For additional security, Yaspa requires an Authenticator to access to your public key settings. Yaspa recommends Google Authenticator, but most commonly available authenticator applications should work. Once you have submitted your token, you’ll be prompted to scan a QR code with your preferred Authenticator app and enter the generated code.

Step 4: Register Your Public Key

With the Authenticator set up, register the public key which Yaspa will use to verify the signature on each payout request. Paste your public key into the designated field, enter the active authenticator code, and save the changes to complete registration.

Key rotation (optional)

The first public key registered will be assigned a key ID of default. The key will be used by Yaspa to verify payout request signatures if no key ID is set in a request's Key-id header.

Should you wish to use a new or additional private key to sign payout requests you can register its public component by clicking on 'Register new key'.

The new key will be assigned a key ID which should then be set in the Key-id header of payout requests. Once the new key has been verified to work correctly the old key can then be disabled.


Did this page help you?