Preparing Keys

To generate a digital signature, normally a key is required to sign the data. You must prepare the RSA private and public key pair to generate and verify a digital signature. For more information about generating the keys, see Digital signature. After generating keys, you need to exchange keys with Alipay. For more information about exchanging keys, see Key pair generation and validation