Skip to content

No trusted certificate found #13

Description

@jranaraki

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions