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

No trusted certificate found #13

Open
jranaraki opened this issue Oct 11, 2019 · 0 comments
Open

No trusted certificate found #13

jranaraki opened this issue Oct 11, 2019 · 0 comments

Comments

@jranaraki
Copy link

jranaraki commented Oct 11, 2019

Hi!

I have been trying to connect to a secure server through their WSS address but I keep getting Error: sun.security.validator.ValidatorException: No trusted certificate found

I have already followed the following steps to generate a self-signed key, convert it to a certificate and import it to the keystore.

  1. Create keystore.jks using keytool -genkey -alias test -keyalg RSA -keystore keystore.jks -dname "CN=AA, OU=BB, O=CC, L=DD, S=EE, C=FF" -storepass changeit -keypass changeit

  2. Create cacert.jks using keytool -export -alias test -storepass changeit -file server.cer -keystore keystore.jks

  3. Create server.cer using keytool -import -v -trustcacerts -alias test -file server.cer -keystore cacerts.jks -keypass changeit -storepass changeit -noprompt

What and where the problem could be?

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