mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🐛 #3443 【微信支付】初始化V3请求时取消对私钥的加密
This commit is contained in:
@@ -14,7 +14,6 @@ import java.security.PrivateKey;
|
||||
import java.security.PublicKey;
|
||||
import java.security.cert.Certificate;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.Base64;
|
||||
import java.util.Optional;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import lombok.Data;
|
||||
@@ -295,10 +294,6 @@ public class WxPayConfig {
|
||||
}
|
||||
try {
|
||||
if (merchantPrivateKey == null) {
|
||||
if (StringUtils.isNotBlank(this.getPrivateKeyString())) {
|
||||
this.setPrivateKeyString(Base64.getEncoder().encodeToString(this.getPrivateKeyString().getBytes()));
|
||||
}
|
||||
|
||||
try (InputStream keyInputStream = this.loadConfigInputStream(this.getPrivateKeyString(), this.getPrivateKeyPath(),
|
||||
this.privateKeyContent, "privateKeyPath")) {
|
||||
merchantPrivateKey = PemUtils.loadPrivateKey(keyInputStream);
|
||||
|
||||
Reference in New Issue
Block a user