Home  >  Article  >  Backend Development  >  android 客户端支付宝 php服务器端编写_PHP教程

android 客户端支付宝 php服务器端编写_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:31:39665browse

生成私钥

输入“genrsa -out rsa_private_key.pem 1024”命令,回车后,在当前 bin 文件目 录中会新增一个 rsa_private_key.pem 文件,其文件为原始的商户私钥(请妥善保 存该文件,PHP 开发语言中需要使用该文件), 

 

生成公钥

输入“rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem”命令回车 后,在当前 bin 文件目录中会新增一个 rsa_public_key.pem 文件,其文件为原始 的商户公钥(请妥善保存该文件,PHP 开发语言中需要使用该文件) 

 

生成Android用的pkcs8

输入命令“pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -outform PEM -nocrypt”并回车 

 

php服务器端需要刚才生成的rsa_private_key.pem和支付宝提供的demo中得alipay_public_key.pem

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/762284.htmlTechArticle生成私钥 输入 genrsa -out rsa_private_key.pem 1024 命令,回车后,在当前 bin 文件目 录中会新增一个 rsa_private_key.pem 文件,其文件为原始的商户私钥...
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