以下是我的待签名内容:
POST
/v3/apply4subject/applyment
1582776342
202002271205420691109864060
{"busine
","url":"/v3/apply4subject/applyment"}
或者
POST
/v3/apply4subject/applyment
1582776342
202002271205420691109864060
{"busine\n","url":"/v3/apply4subject/applyment"}
或者将POST改成GET,这四种情况都不行。
以下是返回的错误信息:
{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":2756,"truncated_sign_message":"POST\n/v3/apply4subject/applyment\n1582776342\n202002271205420691109864060\n{\"busine\n","url":"/v3/apply4subject/applyment"}},"message":"错误的签名,验签失败"}
1,一般是你的签名参数的问题。只能一步步排查参数。
2,你的证书,秘钥,等。是否存在问题。
一般就是这两个方面。
1、接口请求参数不对
2、在确保参数正确的情况下,检查下证书序列号、私钥key以及Ras签名算法是否正确