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

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

Open
night-breeze888 opened this issue Apr 3, 2024 · 2 comments

Comments

@night-breeze888
Copy link

No description provided.

@night-breeze888
Copy link
Author

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

  • 查看所有信息
    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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant