Alipay public key

Just entered the pit and started to develop Alipay, with a confused face. As soon as the demo was downloaded today, an RSA2 signature was generated. After configuring the basic parameters, run:

sign check fail: check Sign and Data Fail!JSON also!

After checking the information for a long time, I still look confused. Later I found out that I didn't even understand the three concepts in the configuration:

  • Alipay public key
  • application public key
  • Apply private key

The public key and private key of the application are generated by Alipay's RSA tool, and only the public key is filled in to Alipay. After filling in, there is a [View Alipay Public Key] after [Set Application Public Key], and the copy of the public key returned to you by Alipay is different from the public key of your own application. I foolishly filled in the generated application public key into the configuration, and struggled for an afternoon. 

Reprinted in: http://blog.csdn.net/sychel/article/details/72825918

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325647059&siteId=291194637