Keystore Exception - Keystore password incorrect #697
Unanswered
isotiropoulos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to run the Dataspace Connector (via docker compose) with new certificates generated by the following commands:
keytool -genkey -keyalg RSA -alias localhost -keystore keystore.p12 -storepass password123 -validity 360 -J-Dkeystore.pkcs12.legacy
keytool -export -alias localhost -file localhost.p12 -keystore keystore.p12 -J-Dkeystore.pkcs12.legacy
keytool -import -v -trustcacerts -alias localhost -file localhost.p12 -keystore truststore.p12 -J-Dkeystore.pkcs12.legacy
and I get the following error. Please, any suggestion on how to proceed will be really helpful!
connectora | 2023-04-05T11:36:54,573 [main] DEBUG - Loading configuration. [path=(/config/config.json)]
connectora | 2023-04-05T11:36:54,573 [main] INFO - Loading config from absolute path. [path=(/config/config.json)]
connectora | 2023-04-05T11:36:54,578 [main] INFO - Loading configuration from file.
connectora | 2023-04-05T11:36:56,178 [main] ERROR - Could not find Keystore at system scope, aborting! [code=(IMSCOE0015), exception=(keystore password was incorrect)]
connectora | 2023-04-05T11:36:56,179 [main] ERROR - keystore password was incorrect
connectora | 2023-04-05T11:36:56,179 [main] ERROR - KeyStoreManager could not be initialized! [code=(IMSCOE0008), exception=(keystore password was incorrect)]connectora | 2023-04-05T11:36:56,190 [main] WARN - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'connectorService' defined in file [/app/BOOT-INF/classes/io/dataspaceconnector/common/ids/ConnectorService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'ids.messaging.core.config.ConfigContainer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
connectora | 2023-04-05T11:36:56,192 [main] INFO - Closing JPA EntityManagerFactory for persistence unit 'default'
connectora | 2023-04-05T11:36:56,200 [main] INFO - HikariPool-1 - Shutdown initiated...
connectora | 2023-04-05T11:36:56,205 [main] INFO - HikariPool-1 - Shutdown completed.
connectora | 2023-04-05T11:36:56,219 [main] INFO - Stopping service [Tomcat]
connectora | 2023-04-05T11:36:56,242 [main] INFO - \n\nError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
connectora | 2023-04-05T11:36:56,292 [main] ERROR - Application run failed
connectora | org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'connectorService' defined in file [/app/BOOT-INF/classes/io/dataspaceconnector/common/ids/ConnectorService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'ids.messaging.core.config.ConfigContainer' available: expected at least
1 bean which qualifies as autowire candidate. Dependency annotations: {}
connectora | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.23.jar:5.3.23]
connectora | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.23.jar:5.3.23]
connectora | at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.4.jar:2.7.4]
connectora | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.4.jar:2.7.4]
connectora | at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.4.jar:2.7.4]
connectora | at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.4.jar:2.7.4]
connectora | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.4.jar:2.7.4]
connectora | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.4.jar:2.7.4]
connectora | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
connectora | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
connectora | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
connectora | at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
connectora | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[app/:?]
connectora | at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[app/:?]
connectora | at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[app/:?]
connectora | at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[app/:?]
connectora | Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'ids.messaging.core.config.ConfigContainer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
connectora | at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1801) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1396) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.23.jar:5.3.23]
connectora | ... 27 more
connectora exited with code 1
Beta Was this translation helpful? Give feedback.
All reactions