Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

Preparing Keys

To generate a digital signature, normally a key is required to sign the data. You must prepare the MD5 key or the RSA/RSA2 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