Sun GlassFish Enterprise Server 2.1 High Availability Administration Guide

ProcedureTo Set up the HTTP Load Balancer in SSL Mode for Sun Web Server 7

  1. (Optional) Create the NSS database using the following command. This step is not needed if the NSS database exists. Make sure that you type the command in a single line.

    webserver-install-dir/bin/certutil -N -d 
    /webserver-install-dir/admin-server/config-store/config-name/config

    When prompted, provide the NSS database password.

  2. Start the Admin Server using the following command.

    webserver-install-dir/admin-server/bin/startserv.bat
  3. Create a self-signed certificate using the following command. Make sure that you type the command in a single line.

    webserver-install-dir/bin/wadm create-selfsigned-cert --user=
    admin-user --server-name=host-name 
    --nickname=ServerCert --token=internal --config=config-name
    
  4. Create an HTTP listener using the following command. Make sure that you type the command in a single line.

    webserver-install-dir/bin/wadm create-http-listener 
    --user=admin-user --server-name=host-name 
    -default-virtual-server-name=default-virtual-server-name 
    --listener-port=8090 --config=config-name http-listener-ssl
  5. Enable the SSL and assign certificate using the following command. Make sure that you type the command in a single line.

    webserver-install-dir/bin/wadm set-ssl-prop 
    --user=admin-user --http-listener=http-listener-ssl 
    --config=config-name enabled=true server-cert-nickname=ServerCert