From b04c31afa0213048367ee6e4eec4fb52dfd59915 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 11 Nov 2020 11:35:27 +0100 Subject: verify on start-up, if AuthBlock signing-key is accessable --- .../modules/auth/eidas/v2/service/AuthBlockSigningService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java index 30d255b9..cb96b0a0 100644 --- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java +++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/service/AuthBlockSigningService.java @@ -124,6 +124,10 @@ public class AuthBlockSigningService { //build new KeyStore based on configuration keyStore = keyStoreFactory.buildNewKeyStore(keyStoreConfiguration); + //check if Key is accessable + EaafKeyStoreUtils.getPrivateKeyAndCertificates( + keyStore.getFirst(), getKeyAlias(), getKeyPassword(), true, KEYSTORE_FRIENDLYNAME); + log.info("AuthBlock signing-service successful initialized"); } -- cgit v1.2.3