前端js:
代码生成相关参数:{"timeStamp":"1587373646","signType":"RSA","package":"prepay_id=wx201707****171069600","paySign":"RI1z/8E/f/xR/2tTafG23OknxINqbxlIh2pYRHDgD5KUMnfQ1qv6rE81QOAXd0w0Xig+sfWkhJd1DxewLDe0juSYnqbndcfUw6Dxe7VHRQ1CFiQAUONg2xXzT38kErgvQnqxpQY7RnIkqQsMHY3+vgGBtxL+2uO49E/YfsYWTDT5DSqWYvyBKB8wNVgFHJUerWNTvSvGqB8IPOL7IJ/ne9/eG5GIFHK3uOG6RX6x07d5F2gyiOoKBITlmm7qBt0tR8yRMk7D4SAX5c+iAsJmm9XXhhe673bSeJb5VxHi6YHcf4L2SA1EgzzUTmoDFlj41DgCGyeJGlpbdWx2Vf8jiA==","nonceStr":"fa7f927c43b54011bf7eb3b39a6e2394","appId":"wx1******7328"}
命令生成的sign值一致:
echo -n -e \
"wx1******7328\n1587373646\nfa7f927c43b54011bf7eb3b39a6e2394\nprepay_id=prepay_id=wx201707****171069600\n" \
| openssl dgst -sha256 -sign apiclient_key.pem \
| openssl base64 -A
RI1z/8E/f/xR/2tTafG23OknxINqbxlIh2pYRHDgD5KUMnfQ1qv6rE81QOAXd0w0Xig+sfWkhJd1DxewLDe0juSYnqbndcfUw6Dxe7VHRQ1CFiQAUONg2xXzT38kErgvQnqxpQY7RnIkqQsMHY3+vgGBtxL+2uO49E/YfsYWTDT5DSqWYvyBKB8wNVgFHJUerWNTvSvGqB8IPOL7IJ/ne9/eG5GIFHK3uOG6RX6x07d5F2gyiOoKBITlmm7qBt0tR8yRMk7D4SAX5c+iAsJmm9XXhhe673bSeJb5VxHi6YHcf4L2SA1EgzzUTmoDFlj41DgCGyeJGlpbdWx2Vf8jiA==
ps:
生成sign值是不是和获取平台证书的私钥一致,平台证书已经获取成功,表明商户私钥应该没有问题
请问下问题解决了嘛?
你好 请问一下你解决问题了吗?
V3验证签名工具:
链接:https://pan.baidu.com/s/1ixOAnYyZVW13dFr0jWVpvw
提取码:wujv