微信支付下单V2接口报证书错误,但是接口文档里写了,不需要证书。
接口地址https://api.mch.weixin.qq.com/pay/unifiedorder
2024-07-24 14:57:08,214|default task-7|issm|ERROR|ProductDetailV3Action||submitOrder:提交订单异常:{} java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.jpay.util.HttpUtils$OkHttp3Delegate.exec(HttpUtils.java:325) ~[IJPay-1.4.1.jar:na] at com.jpay.util.HttpUtils$OkHttp3Delegate.post(HttpUtils.java:353) ~[IJPay-1.4.1.jar:na] at com.jpay.util.HttpUtils.post(HttpUtils.java:50) ~[IJPay-1.4.1.jar:na] at com.jpay.weixin.api.WxPayApi.doPost(WxPayApi.java:471) ~[IJPay-1.4.1.jar:na] at com.jpay.weixin.api.WxPayApi.pushOrder(WxPayApi.java:115) ~[IJPay-1.4.1.jar:na] at com.suning.issm.exter.wechatapplet.impl.PaySignWxImpl.pushPayOrder(PaySignWxImpl.java:50) ~[issm-exter-0.0.1-SNAPSHOT.jar:na]