Creating an RSA Key
Option1: Generated in Merchant Portal
Login Merchant Portal
Go to "setting"
Go to "Your Business"
Click "Manage" of "API Keys and whitelist Manage"
Click "Key generation tool"
Click "Generate Private Key" and Save the private key.
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