Running the SSL sample applet

The SSL sample applet contains code for both a Java and a C++ server component. The applet instantiates and runs the JUserCredentialTest (Java) or CUserCredentialTest (C++) component. The component retrieves and the applet displays information about the client certificate.

Complete instructions for running the applet are in the file html\classes\Sample\SecurityDemo\readme.html in your EAServer installation directory.

StepsUsing readme.html

  1. Import the SecurityDemo package into EAServer Manager.

    The SecurityDemo package contains a Java and a C++ component. These components both implement the SecurityDemo::UserCredentialTest interface.

  2. Generate stubs and skeletons.

    You need to generate the stub files for the Java applet and the skeleton files for the server component.

  3. Compile the Java source files.

  4. Run the applet.

    You are instructed to load the HTML page that contains the applet at port 8080. If you connect to port 8080, authentication requirements are determined by the IIOP listener to which the applet connects.

    You can also load the HTML page by connecting to the HTTPS listener port 8083 (https://hostname:8083) that you created earlier. Before the browser loads the page, you need to accept EAServer’s certificate and supply the user certificate that you imported in to your browser for client authentication.

    The SSL sample applet connects to the preconfigured IIOP listeners, IIOP at port 9000, IIOPS at port 9001, and IIOPS at port 9002. For the applet to run successfully, verify that the host name for these listeners is the same as the host name for the HTTPS listener (8083). Refer to “Preconfigured listeners” in Chapter 13, “Security Configuration Tasks” for more information.