To generate a digital signature, normally a key is required to sign the data. For cross-border app payment, RSA sign type is supported. 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.