Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Handshake Exception with Self Signed HTTPS certs #265

Open
oleksandrsemak opened this issue Jul 13, 2022 · 1 comment
Open

SSL Handshake Exception with Self Signed HTTPS certs #265

oleksandrsemak opened this issue Jul 13, 2022 · 1 comment

Comments

@oleksandrsemak
Copy link

Hello there,

In our organisation we have VPN with Self Signed TLS CA which we import to AWS Cert Manager and use for NGINX Ingress.

so we import Root/Intermediate/Host certificates to keystore like:
keytool -import -noprompt -trustcacerts -alias *** -file *** -keystore cacerts -storepass changeit

create secret via helm values and add Java args:
-Djavax.net.ssl.trustStore=/etc/secret-volume/cacerts -Djavax.net.ssl.trustStorePassword=changeit

but during run java test we still get:
[javax.net](http://javax.net/).ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

@oleksandrsemak
Copy link
Author

UPDATE: we have added extra propreties and its helped but on VM java-test works only with added certs by update-ca-certificates :

rp.keystore.resource = ***
rp.keystore.password = ***

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

No branches or pull requests

1 participant