{
"code": "SIGN_ERROR",
"detail": {
"detail": {
"issue": "sign not match"
},
"field": "signature",
"location": "authorization",
"sign_information": {
"method": "GET",
"sign_message_length": 66,
"truncated_sign_message": "GET
/v3/certificates
1621837593
XnzZkxgHMlQfYjyvozt8On1T7frFT6zg
",
"url": "/v3/certificates"
}
},
"message": "错误的签名,验签失败"
}
我用命令(java -jar CertificateDownloader.jar -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath})下载时报这个错误java.io.FileNotFoundException: 'E:\test\test\apiclient_key.pem' (文件名、目录名或卷标语法不正确。)
java -jar CertificateDownloader.jar —help 看下帮助提示信息,按要求提供对应参数
签名的问题定位参考https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay7_1.shtml#part-2