Generate public and private key
Public and private key management
The merchant needs to manage two sets of RSA certificates for the merchant and PalmPay platform, and one set of merchant private key is retained by the merchant for use by the merchant's back-end and SDK for signature generation.
Upload the merchant back-end public key and SDK public key to PalmPay platform. Next, you need to get the PalmPay platform public key, which is used by palmpay to verify the signature when it calls back to the merchant interface.
Generate merchant public and private keys
Merchants can use the generateKeyPair() method in the RsaUtil class in the following attachment to generate their own secret key pairs. The private key generated by this method is 2048-bit and has been base64 encoded.
The merchant needs to upload the public key to the PalmPay merchant platform, save the private key by yourself, do not disclose it. .
Attachment PalmpaySdkDemoNew For debugging use only: Test account&Secret key