Accepting an HTTPS Connection on the Client Side
To accept an HTTPS connection on the client side, you can do either of the following:
Import the server certificate into your Internet browser truststore. In case of a PKI, import the CA certificate that issued the server certificate. If you are accessing resources through a Web server’s HTTPS protocol from a Java client using Oracle JSSE, you must also set a truststore via the
-Djavax.net.ssl.trustStore property and a truststore password via the
-Djavax.net.ssl.trustStorePassword property. For example:
-Djavax.net.ssl.trustStore=<your_truststore_here>
-Djavax.net.ssl.trustStorePassword=<your_truststore_password_here>
When you open an HTTPS connection in your Internet browser, you will be asked whether you trust the certificate. Click
Yes.