SSL Tunneling sample

The sample in the ssltunneling folder communicates with Entrust PKI through a proxy web server and an HTTP tunnel with SSL.

Configuring the web server

Before running the sample application:

  1. Install a Web server that supports servlets.

  2. Set up a directory servlet and a manager servlet as described in the Javadoc reference documentation for the com.entrust.toolkit.util.HttpDirectoryServlet and com.entrust.toolkit.util.HttpManagerServlet classes

  3. Configure your web server to enable SSL communications with client authentication.

  4. Edit the sample application code to supply:

    • An Entrust profile and password,

    • The URLs for the manager and directory servlets.

Compiling SSLTunnelSample.java

Run the following command line in the etjava/examples directory.

javac -sourcepath source -d classes -classpath ../lib/enttoolkit.jar source/com/entrust/toolkit/examples/ssltunneling/SSLTunnelSample.java

Running SSLTunnelSample

Run the following command line in the etjava/examples directory.

java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.ssltunneling.SSLTunnelSample

After successfully logging the user, the sample application displays the following message.

User login successful.