Home >Backend Development >PHP Tutorial >支付宝公钥怎么生成

支付宝公钥怎么生成

WBOY
WBOYOriginal
2016-06-23 13:22:041328browse

我做的是手机网站支付,用opensSL工具生成的生成的公钥上传给支付宝,得到支付公钥的内容,注意,是内容。怎么转成文件?
opensSL工具好像没有将内容转成key文件的,求助


回复讨论(解决方案)

生成公钥文件,这么几个大字看不到?
没有文件先建一个UTF8无BOM格式保存进去不会?
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDTGQVSfIp+dSCiW6iocCEGb6Om
mvyQrMTOlgFDsCOME7ydeOR+BIqQMfQsR9lm+QlDlfIGqgzAkJmL7hoTKvA+j2fc
VCy/cyt6lrriANxdbVKlrOVgp+oG3NHo+NGqc6RvnvFv7nJUsnCXPwFSWxweqFZu
YpI7iOl9xi08MyeClwIDAQAB
-----END PUBLIC KEY-----

http://app.alipay.com/market/document.htm?name=saomazhifu#page-23

谢谢大家,直接将内容拆成Base64格式就可以了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn