Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Keystore avatakse truststore parooliga #40

Open
arand opened this issue Dec 30, 2020 · 0 comments
Open

Keystore avatakse truststore parooliga #40

arand opened this issue Dec 30, 2020 · 0 comments

Comments

@arand
Copy link

arand commented Dec 30, 2020

sslContextBuilder.loadKeyMaterial(clientKeyStore, getClientTrustStorePassword().toCharArray());

Kui truststore ja keystore on erinevate paroolidega, siis sslContext init saab vea:

nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dhxGateway': Unsatisfied dependency expressed through field 'soapHttpClient'
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'soapHttpClient' defined in class path resource [ee/ria/dhx/ws/config/SoapConfig.class]: Unsatisfied dependency expressed through method 'soapHttpClient' parameter 1
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sslSocketFactory' defined in class path resource [ee/ria/dhx/ws/config/SoapConfig.class]: Unsatisfied dependency expressed through method 'sslSocketFactory' parameter 0
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sslContext' defined in class path resource [ee/ria/dhx/ws/config/SoapConfig.class]: Bean instantiation via factory method failed
nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.net.ssl.SSLContext]: Factory method 'sslContext' threw exception
nested exception is java.security.UnrecoverableKeyException: Cannot recover key

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant