httpResponseBody[{"code":"RESOURCE_NOT_EXISTS","message":"证书不存在"}] HttpRequest[{"http_method":"GET","url":"https://api.mch.weixin.qq.com/v3/certificates?algorithm_type=RSA","uri":"https://api.mch.weixin.qq.com/v3/certificates?algorithm_type=RSA","headers":{"headers":{"Authorization":"WECHATPAY2-SHA256-RSA2048 mchid=\"1623981678\",nonce_str=\"GjMZCE7nKBezlXvNKowmASJnR6v0u0jy\",timestamp=\"1730423686\",serial_no=\"71E0CBC3B0AA26AEF48AEE496349FD69959BE549\",signature=\"IZSAAlrtKYe8O+NdTZr+GGDmYH/RvKVOQ2g0G+i27tAb8cHrPEoMuWDNb/m/E23cpjDYiaGBCBYYWoow6jqvVYv/jTjYCHR8kSBW056NIML2xSIGdFcbv0OjNkzhbJM6jRu491FipqWpjV/qkMm7Ef3avw7eWdO2zjcAKyLJzvLhl1VOPZCq0y+/Y4xOjDR0COxqO7cf9VhCQE/XAytg1So2NNhFm9QPrrUKkXcqohq4J/40zswOqYjCHQ0UumU1rYfN5ZMvf3iHNNV6GMYPybf6MKjLbc2v0P2IOSnxhdz3eQm4LloIBv7jO7ITeC4wSMAVPm7mpKHgAs2cKagerw==\"","Accept":" */*","User-Agent":"WechatPay-Java/0.2.14 (Windows 10/10.0) Java/1.8.0_191 Credential/WechatPay2Credential Validator/ okhttp3/null","Content-Type":"application/json"}}}]
如果是新申请的微信支付商户号出现「证书不存在」的报错,这是因为新申请的商户号需要使用公钥模式,具体还请参照:https://developers.weixin.qq.com/community/pay/doc/0002c6a7cf438818df52145b863c01 进行处理
新商户号需要使用平台公钥模式,不再签发平台证书,可以参考https://developers.weixin.qq.com/community/develop/article/doc/000ca894a20c983cad52242286b813
https://pay.weixin.qq.com/docs/merchant/products/platform-certificate/wxp-pub-key-guide.html