MatlabWebSocket icon indicating copy to clipboard operation
MatlabWebSocket copied to clipboard

No trusted certificate found

Open jranaraki opened this issue 6 years ago • 0 comments

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?

jranaraki avatar Oct 11 '19 19:10 jranaraki