go get -u -v github.com/ikaiguang/go-allinpay
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