Secure sockets may be employed between a client and a server or in a peer application which has deployed remotely accessible foundation services.
Note that the SSL examples presented on this page pertain to JSSE used to secure RMI communication for Java remote objects as opposed to SSL capabilities provided by web servers.
The server’s public certificate, stored in the client’s trust store, is authenticated against the private certificate stored in the server’s key store.
The trust store is typically one of the following files:
<java-home>\lib\security\jssecacerts
<java-home>\lib\security\cacerts
The JSSE API recommends jssecacerts
as the default trust store.
To provide the capability to ensure that the server is authenticated, one needs to create a server key store, export the server's public certificate, and then import the server's public certificate into your clients' trust stores.
Follow these procedures to setup server authentication:
To provide the capability to ensure that the server is authenticated, one needs to create a server key store, export the server's public certificate, and then import the server's public certificate into your clients' trust stores. Refer to the procedure defined in JRE Setup for Server Authentication.
In addition to the server's public certificate being imported into the clients' trust stores, the client's public certificate must be imported into the server's trust store.
The server’s public certificate, stored in the client’s trust store, is authenticated against the private certificate stored in the server’s key store.
The client’s public certificate, stored in the server’s trust store, is authenticated against the private certificate stored in the client’s key store.
The trust store is typically one of the following files:
<java-home>\lib\security\jssecacerts
<java-home>\lib\security\cacerts
The JSSE API recommends jssecacerts
as the default trust store.
To provide the capability to ensure that the client is authenticated, one needs to create a client key store, export the client's public certificate, and then import the client's public certificate into your server's trust store.
Follow these procedures to setup client authentication:
javax.net.debug