When I tried to execute the SSLClient by setting the java path over command line, it works perfectly:
java -cp . -Djavax.net.ssl.trustStore=public.jks <Clientprogram>
But when I try to set inside the program following the statement, it fails with the error:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed: sun.
security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target System.setProperty("javax.net.ssl.trustStore", "/Users/abc/Desktop/Folder/public.jks");
I'm running program on Linux machine. What could be the issue?
Aucun commentaire:
Enregistrer un commentaire