Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

传相同的参数,为什么微信分本地项目能通,部署到linux服务器上面创建订单接口时候报构建v3异常呢 #79

Open
pandazhang520 opened this issue May 13, 2021 · 2 comments

Comments

@pandazhang520
Copy link

求救

@pandazhang520
Copy link
Author

异常图片:image

异常代码
Caused by: java.lang.IllegalArgumentException: java.security.InvalidKeyException: Illegal key size
at com.github.binarywang.wxpay.v3.util.AesUtils.decryptToString(AesUtils.java:75) ~[weixin-java-pay-4.0.0.jar:na]
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.deserializeToCerts(AutoUpdateCertificatesVerifier.java:171) ~[weixin-java-pay-4.0.0.jar:na]
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.autoUpdateCert(AutoUpdateCertificatesVerifier.java:145) ~[weixin-java-pay-4.0.0.jar:na]
at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.(AutoUpdateCertificatesVerifier.java:95) ~[weixin-java-pay-4.0.0.jar:na]
at com.github.binarywang.wxpay.config.WxPayConfig.initApiV3HttpClient(WxPayConfig.java:268) ~[weixin-java-pay-4.0.0.jar:na]
... 108 common frames omitted
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) ~[na:1.8.0_122]
at javax.crypto.Cipher.implInit(Cipher.java:805) ~[na:1.8.0_122]
at javax.crypto.Cipher.chooseProvider(Cipher.java:864) ~[na:1.8.0_122]
at javax.crypto.Cipher.init(Cipher.java:1396) ~[na:1.8.0_122]
at javax.crypto.Cipher.init(Cipher.java:1327) ~[na:1.8.0_122]
at com.github.binarywang.wxpay.v3.util.AesUtils.decryptToString(AesUtils.java:68) ~[weixin-java-pay-4.0.0.jar:na]
... 112 common frames omitted

@binarywang
Copy link
Owner

这个不是常见问题吗?wxjava的wiki里的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants