FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bug: #3424 [微信支付]尝试加载p12证书前校验path, 避免path为空时加载失败打印堆栈 by zhanyan-Ader1y · Pull Request #3428 · binarywang/WxJava · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ private InputStream loadConfigInputStream(String configPath) throws WxPayExcepti
*/
private Object[] p12ToPem() {
String key = getMchId();
if (StringUtils.isBlank(key)) {
if (StringUtils.isBlank(key) || StringUtils.isBlank(this.getKeyPath())) {
return null;
}

Expand All @@ -466,7 +466,7 @@ private Object[] p12ToPem() {
X509Certificate x509Certificate = (X509Certificate) certificate;
return new Object[]{privateKey, x509Certificate};
} catch (Exception e) {
log.error("加载证书时发生异常", e);
log.error("加载p12证书时发生异常", e);
}

return null;
Expand Down

Back | FazBrowse Home | New Git URL