deborah deborah - 4 months ago 11
Java Question

java SSL and cert keystore

How does my java program know where my keystore containing the certificate is? Or alternatively how do I tell my java program where to look for the keystore?

After specifying the keystore in some way, how to specify the certificate to use for authenticating the server to client?

Answer
System.setProperty("javax.net.ssl.trustStore",path_to_your_cacerts_file);