ios - 支付宝支付集成,上传RSA公钥一直显示格式错误
PHP中文网
PHP中文网 2017-04-17 17:18:01
0
7
432

在“合作伙伴密钥管理”那一块上传公钥,我已经按照文档里面说的,用openssl生成了公钥和私钥,然后将公钥的”-----BEGIN PUBLIC KEY-----”、“-----END PUBLIC KEY-----”、空格、换行都去掉了,可是上传的时候一直提示我“格式错误,请输入正确的RSA公钥”,换了很多个浏览器都不行,而且我试了一下文档给的公钥示例,也是格式错误。。。这是怎么回事啊?急求

PHP中文网
PHP中文网

认证0级讲师

reply all(7)
阿神

I encountered the same problem with Alipay, and there is a solution: https://openhome.alipay.com/platform/keyManage.htm?keyType=partner

PHPzhong

To convert to pcks format, one of the steps will be printed on the screen. Copy that and upload it

伊谢尔伦

Generate RSA private key
openssl>genrsa -out rsa_private_key.pem 1024
Generate RSA public key
openssl>rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
Upload rsa_public_key.pem
https://cshall.alipay .com/enterprise/help_detail.htm?help_id=473890

阿神

Did the original poster solve the problem?

PHPzhong

1 There is a problem with the uploaded module itself. Please ask the relevant Alipay staff to modify it as soon as possible

阿神

It was the same at the time, and it still succeeded occasionally. Later I found out that it was because after a short period of time after entering the password, when I tried to upload the key, it would say an error. Refresh it, re-enter the login password, and then upload it and it would be ok

小葫芦

It should take a while to refresh the web page and re-enter the Alipay password.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!