We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca00553 commit f70a305Copy full SHA for f70a305
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
@@ -449,7 +449,8 @@ private InputStream loadConfigInputStream(String configPath) throws WxPayExcepti
449
*/
450
private Object[] p12ToPem() {
451
String key = getMchId();
452
- if (StringUtils.isBlank(key) || StringUtils.isBlank(this.getKeyPath())) {
+ if (StringUtils.isBlank(key) ||
453
+ (StringUtils.isBlank(this.getKeyPath()) && this.keyContent == null && StringUtils.isBlank(this.keyString))) {
454
return null;
455
}
456
0 commit comments