Preparation
Preparation#
Create a developer account on the Merchant Workspace#
The merchant can apply for a developer account on the merchant workspace, after finishing the KYB process.
Create AK and SK on the Merchant Workspace#
On the merchant workspace, you can find Development Page
The SK will only be displayed once, you need to record the SK and use the SK to access the OpenService API
Upload RSA Public Key#
On the merchant workspace, you can find Settings Page
Generating an RSA key pair
Many tools can be used to generate the RSA key pair. The following steps assume that you use OpenSSL to generate the RSA key pair.
1.Install OpenSSL.
For linux system, use the following command:
>> sudo apt-get install openssl
For windows system, download and then install OpenSSL from the official site
2.Generate RSA key pair.
For linux system, use the following command:
>> $ openssl
OpenSSL> genrsa -out rsa_private_key.pem 2048 ##generate private key
OpenSSL> rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
##Generate public key
OpenSSL> exit
Upload the Rsa public key