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