wechatpay-node-v3-ts icon indicating copy to clipboard operation
wechatpay-node-v3-ts copied to clipboard

为什么我用微信.p12文件生成的公钥和私钥微信APP下单报错签名错误?

Open night-breeze888 opened this issue 10 months ago • 2 comments

night-breeze888 avatar Apr 03 '24 04:04 night-breeze888

使用的命令生成的公钥和私钥

  • 查看所有信息 openssl pkcs12 -info -in cert.p12 -nodes

  • 导出证书 openssl pkcs12 -in cert.p12 -out cert.pem -nokeys

  • 导出秘钥 openssl pkcs12 -in cert.p12 -out private_key.pem -nodes -nocerts

  • 查看证书序列号 openssl x509 -in cert.pem -noout -serial

night-breeze888 avatar Apr 03 '24 04:04 night-breeze888

image 这个地方会误导新人了,应该是用 "/" 开头才不会报签名错误

night-breeze888 avatar Apr 03 '24 07:04 night-breeze888