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