Skip to content

通联支付, golang allinpay, golang openssl_sign, golang openssl_pkey_get_private, golang openssl_get_publickey

Notifications You must be signed in to change notification settings

ikaiguang/go-allinpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

通联支付

install

go get -u -v github.com/ikaiguang/go-allinpay

go version go1.10.1 darwin/amd64

go run main.go

生成私钥

openssl genrsa -out rsa_private_key.pem 1024

生成公钥

openssl rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem

转换私钥

openssl pkcs12 -nocerts -nodes -in 20060400000044502.p12 -out 20060400000044502.pem

转换的时候,密码是:111111

转换公钥(或证书)

openssl x509 -inform DER -in allinpay-pds.cer -out allinpay-pds.pem

About

通联支付, golang allinpay, golang openssl_sign, golang openssl_pkey_get_private, golang openssl_get_publickey

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages