微信支付证书由 微信支付颁发的API证书 升级权威CA颁发的API证书 后windows 正常 但是linux报错 请问是什么原因
异常信息:
java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded
at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1304)
at java.security.KeyStore.load(KeyStore.java:1214)
at com.b2c.weixin.sendredpack.common.util.SSLUtil.ssl(SSLUtil.java:44)
at com.b2c.weixin.sendredpack.service.impl.WechatRedPackServiceImpl.sendRedPackTest(WechatRedPackServiceImpl.java:141)
at com.b2c.weixin.attention.manage.action.InsertOpenIdManageAction.sendRedPackTest(InsertOpenIdManageAction.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
你这个应该是解密失败,参考一下这里。https://www.pianshen.com/article/774988054/