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

windows服务器下绝对路径证书报错IOException #20

Open
MrRiven opened this issue May 29, 2019 · 0 comments
Open

windows服务器下绝对路径证书报错IOException #20

MrRiven opened this issue May 29, 2019 · 0 comments

Comments

@MrRiven
Copy link

MrRiven commented May 29, 2019

me.hao0.wepay.exception.WepayException: java.io.IOException: keystore password was incorrect

Path path = Paths.get("C:\nginx-1.15.12\web\1416758702_20190529_cert\apiclient_cert.p12");
byte[] data = Files.readAllBytes(path);
// 加载证书文件
wepay = WepayBuilder.newBuilder(appid, secret, mchId)
.certPasswd(mchId)
.certs(data)
.build();

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

1 participant