aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src/main')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/CreateIdentityLinkTask.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/CreateIdentityLinkTask.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/CreateIdentityLinkTask.java
index e4a22cbc..93813ff5 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/CreateIdentityLinkTask.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/CreateIdentityLinkTask.java
@@ -95,6 +95,9 @@ public class CreateIdentityLinkTask extends AbstractAuthServletTask {
@Autowired
private ICcSpecificEidProcessingService eidPostProcessor;
+ @Autowired
+ EaafKeyStoreFactory keyStoreFactory;
+
/*
* (non-Javadoc)
*
@@ -331,14 +334,14 @@ public class CreateIdentityLinkTask extends AbstractAuthServletTask {
}
private String getPkFromKeystore() throws EaafException, KeyStoreException {
- EaafKeyStoreFactory keyStoreFactory = new EaafKeyStoreFactory();
KeyStoreConfiguration configuration = new KeyStoreConfiguration();
final String current = new java.io.File(".").toURI().toString();
configuration.setSoftKeyStoreFilePath(current + "src/test/resources/keystore/teststore.jks");
-
configuration.setSoftKeyStorePassword("f/+saJBc3a}*/T^s");
configuration.setKeyStoreType(KeyStoreConfiguration.KeyStoreType.JKS);
+ configuration.setFriendlyName("connectorkeypair");
+ configuration.setKeyStoreName("connectorkeypair");
val ks = keyStoreFactory.buildNewKeyStore(configuration);
val publicKey = ks.getFirst().getCertificate("connectorkeypair").getPublicKey();
return Base64.getEncoder().encodeToString(publicKey.getEncoded());