收藏
回答

v3支付 下载证书 签名错误



PS E:\weixinpay> java -jar .\CertificateDownloader-1.1.jar -f .\apiclient_key.pem -k 2B1F270A93B11E0463CE66C7D7B548 -m 149389562 -s 6E2CA398E9E2F3B76817F879D61C7B -o ./aaa

apiV3key=[2B1F270A93B16C7D7B548]

privateKey file path=[.\apiclient_key.pem]

merchant's certificate serial number=[6E2CA398E9E079D61C005A49287B]

=== download begin ===

download failed,resp code=401,body={"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\n/v3/certificates\n1596550216\n8spnrZsudequI7wC3vSOBbpRiDt2QvU0\n\n","url":"/v3/certificates"}},"message":"错误的签名,验签失败"}

java.io.IOException: request failed

        at com.elias.CertificateDownloader.downloadCertificate(CertificateDownloader.java:106)

        at com.elias.CertificateDownloader.run(CertificateDownloader.java:67)

        at picocli.CommandLine.executeUserObject(CommandLine.java:1729)

        at picocli.CommandLine.access$900(CommandLine.java:145)

        at picocli.CommandLine$RunLast.handle(CommandLine.java:2101)

        at picocli.CommandLine$RunLast.handle(CommandLine.java:2068)

        at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1928)

        at picocli.CommandLine.parseWithHandlers(CommandLine.java:2282)

        at picocli.CommandLine.run(CommandLine.java:2740)

        at picocli.CommandLine.run(CommandLine.java:2677)

        at com.el

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签