mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-13 21:33:41 +08:00
fix: 修复多证书初始化的问题
This commit is contained in:
@@ -56,9 +56,9 @@ public class KeyPairFactory {
|
||||
if (store == null) {
|
||||
synchronized (lock) {
|
||||
store = KeyStore.getInstance("PKCS12");
|
||||
store.load(resource.getInputStream(), pem);
|
||||
}
|
||||
}
|
||||
store.load(resource.getInputStream(), pem);
|
||||
}
|
||||
X509Certificate certificate = (X509Certificate) store.getCertificate(keyAlias);
|
||||
certificate.checkValidity();
|
||||
|
||||
Reference in New Issue
Block a user