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.
-
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
-
Create cacert.jks using keytool -export -alias test -storepass changeit -file server.cer -keystore keystore.jks
-
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?
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 foundI have already followed the following steps to generate a self-signed key, convert it to a certificate and import it to the keystore.
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 changeitCreate cacert.jks using
keytool -export -alias test -storepass changeit -file server.cer -keystore keystore.jksCreate server.cer using
keytool -import -v -trustcacerts -alias test -file server.cer -keystore cacerts.jks -keypass changeit -storepass changeit -nopromptWhat and where the problem could be?