Creating an RSA Key

Option1: Generated in Merchant Portal

  1. Login Merchant Portal

  2. Go to "setting"

  3. Go to "Your Business"

  4. Click "Manage" of "API Keys and whitelist Manage"

  5. Click "Key generation tool"

  6. Click "Generate Private Key" and Save the private key.

  7. Click "Show public key" and save the BonusPay's public key.

Option2: Generated by Openssl

### Generate key
# BonusPay_key.pem                Key file name
# 2048                         Key size, at least 2048
openssl genrsa -out BonusPay_key.pem 2048
 
### Export public key
# BonusPay_key.pem               Key file generated in the previous step
# BonusPay_key_public.pem        Exported public key file name
openssl rsa -in BonusPay_key.pem -out BonusPay_key_public.pem -pubout
 
### Export Java-compatible private key
# BonusPay_key.pem               Key file generated in the first step
# BonusPay_key_Private.pem
openssl pkcs8 -in BonusPay_key.pem -topk8 -nocrypt -out BonusPay_key_private.pem

Upload the "BonusPay_key_public.pem" to the merchant portal.

Last updated