Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝支付接口 #61

Open
1c7 opened this issue Sep 18, 2015 · 0 comments
Open

支付宝支付接口 #61

1c7 opened this issue Sep 18, 2015 · 0 comments

Comments

@1c7
Copy link
Owner

1c7 commented Sep 18, 2015

官方排版太差,自己整理了下

https://openhome.alipay.com/platform/document.htm#webApp-intro-safe-RSA
Linux用户(以Ubuntu为例)

$ openssl 进入OpenSSL程序

OpenSSL> genrsa -out rsa_private_key.pem 1024
生成私钥

OpenSSL> rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
生成公钥

OpenSSL> exit



#### 1. OpenSSL https://www.openssl.org/

是一个开源项目,目的是
implementing the Transport Layer Security (TLS)
and Secure Sockets Layer (SSL) protocols
as well as a full-strength general purpose cryptography library.


#### 2. genrsa --- generate an RSA private key --- 生成 RSA 私钥

https://www.openssl.org/docs/manmaster/apps/genrsa.html

-out 是输出文件名
1024 是 numbits
the size of the private key to generate in bits. This must be the last option specified. The default is 512.


#### 3. rsa --- RSA key processing tool --- RSA key 处理工具

https://www.openssl.org/docs/manmaster/apps/rsa.html

-in 是输入文件名
-out 是输出文件名
-pubout



@1c7 1c7 changed the title 1 支付宝支付接口 Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant