5 Installing and Configuring IHS 12c WebGate for OAM

This chapter describes how to install and configure IBM HTTP Server (IHS) 12c WebGate for Oracle Access Manager (OAM).

This chapter contains the following sections:

Prerequisites for Installing IHS 12c WebGate

This section discusses the following topics:

Oracle Fusion Middleware Certification

The Oracle Fusion Middleware Supported System Configurations document provides certification information for Oracle Fusion Middleware, including supported installation types, platforms, operating systems, databases, JDKs, and third-party products related to Oracle Identity and Access Management 12c .

You can access the Oracle Fusion Middleware Supported System Configurations document at:

http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html

Installing JRE

You must have a 64-bit Java runtime environment (JRE), 11 or higher installed.

Installing and Configuring IHS

For information about installing and configuring IHS, see the IBM HTTP Server product documentation.

Note:

IHS 12c WebGate is supported on IHS Web Server version 9.x only.

Installing and Configuring OAM 12c

For information about installing Oracle Access Manager (OAM), see Installing and Configuring Oracle Identity and Access Management Software in Oracle Fusion Middleware Installation Guide for Oracle Identity and Access Management.

For information about configuring Oracle Access Manager in a new or existing WebLogic administration domain, see Configuring Oracle Access Management in Oracle Fusion Middleware Installation Guide for Oracle Identity and Access Management.

For information about configuring Oracle Access Manager in Open, Simple, or Cert mode, see Securing Communication in Oracle Fusion Middleware Administrator's Guide for Oracle Access Manager .

Installing IHS 12c WebGate

This section contains the following topics:

Obtaining the Software

For information about obtaining the IHS 12c software, see Oracle Fusion Middleware Download, Installation, and Configuration ReadMe.

Starting the IHS 12c WebGate Installer

To start the installation wizard, do the following:

  1. Go to the directory in which you extracted the contents of the Installer.
  2. Run the following command:

    On Linux: ./fmw_12.2.1.4.0_ihswebgate_linux64.bin

    Note:

    Follow silent mode installation for OEL 8. GUI mode installation is not supported.

After the Installer starts, the Welcome screen appears. Continue by referring to the section Installation Flow and Procedure of IHS 12c WebGate for installing IHS 12c WebGate for Oracle Access Manager.

Installation Flow and Procedure of IHS 12c WebGate

To install IHS 12c WebGate for Oracle Access Manager, follow the instructions in Table 5-1.

If you need additional help with any of the installation screens, then click Help to access the online help.

Table 5-1 Installation Flow of IHS 12c WebGate

No. Screen Description and Action Required

1.

Welcome Screen

Click Next to continue.

2.

Prerequisite Checks Screen

Click Next to continue.

3.

Specify Installation Location Screen

Specify the Middleware home and Oracle home locations.

For more information about these directories, see Understanding Your Installation Starting Point in Planning an Installation of Oracle Fusion Middleware.

Click Next to continue.

4.

Installation Summary Screen

Verify the information on this screen.

Click Install to begin the installation.

5.

Installation Progress Screen

Click Next to continue.

6.

Installation Complete Screen

Click Finish to dismiss the Installer.

Post-Installation Steps for IHS 12c WebGate

This section includes the following topics:

Deploying the IHS WebGate Instance

Create an IHS WebGate instance by using the deployWebGateInstance.sh tool from the WebGate Oracle home directory. The WebGate instance directory that you are creating or have provided must be empty.

To deploy the WebGate instance, do the following:

  1. Go to the WebGate_Oracle_Home/webgate/ihs/tools/deployWebGate directory by running the following command:

    cd WebGate_Oracle_Home/webgate/ihs/tools/deployWebGate

  2. Run the following command:

    ./deployWebGateInstance.sh -w WebGate_Instancedir -oh WebGate_Oracle_Home -ws WebServer

    In the preceding command:

    • WebGate_Instancedir is the directory in which the new WebGate instances should be created.

    • WebGate_Oracle_Home is the WebGate Oracle home directory you specified while installing IHS 12c WebGate.

    • WebServer is ihs24.

    Example:

    ./deployWebGateInstance.sh -w /home/wg_instance4ihs/ -oh /home/Oracle_OAMWebGate1/ -ws ihs24

Setting the Environment Variables

Set the environment variable LD_LIBRARY_PATH on Linux, and LIBPATH on AIX, to WebGate_Oracle_Home/webgate/ihs/lib.

Example:

On Linux

export LD_LIBRARY_PATH=/home/Oracle_OAMWebGate1/webgate/ihs/lib

On AIX

export LIBPATH=/home/Oracle_OAMWebGate1/webgate/ihs/lib

export LDR_PRELOAD64=libclntsh.so

Running the EditHttpConf Tool

To run the EditHttpConf tool, do the following:

  1. Go to the WebGate_Oracle_Home/webgate/ihs/tools/setup/InstallTools directory, by running the following command:

    cd WebGate_Oracle_Home/webgate/ihs/tools/setup/InstallTools

  2. Run the following command:

    ./EditHttpConf -f path_to_webserver_config_file -w WebGate_Instance_Dir -oh WebGate_Oracle_Home -ws WebServer

    In the preceding command:

    • path_to_webserver_config_file is the full path of the IHS instance httpd.conf file.

    • WebGate_Instance_Dir is the directory in which the new WebGate instance is created.

    • WebGate_Oracle_Home is the full path to the WebGate Oracle home.

    • WebServer is ihs24.

    Note:

    The -oh parameter is optional and the command runs without any error, even if you do not specify it.

    Example:

    cd /home/OAMWebGate1/webgate/ihs/tools/setup/InstallTools/

    ./EditHttpConf -f /home/instanceHome1/net-test_ihs1/config/test_httpd.conf -oh /home/Oracle_OAMWebGate1/ -w /home/Oracle_OAMWebGate1/wg_instance4ihs/ -ws ihs24

Verifying the Installation and Configuration of IHS 12c WebGate

After installing IHS 12c WebGate for Oracle Access Manager, you can examine the installDATE-TIME_STAMP.out log file to verify the installation. The default location of the log is in the following file:

WebGate_Home/oraInst.loc

Getting Started with a New IHS 12c WebGate

Before you can use the new IHS 12c WebGate agent for Oracle Access Manager, you must complete the following tasks:

Registering the New IHS 12c WebGate

Oracle Access Manager WebGate component utilizes a high availability environment to eliminate a single point of failure and to distribute the workload using a load balancer (LBR). OAM needs to be registered only once, the same resulting artifacts are used by all the OAM WebGates that are behind the LBR.

You can register the new WebGate agent with Oracle Access Manager using any one of the following options:

Oracle Access Manager Administration console

For complete information about registering WebGate agent using Oracle Access Manager console, see Registering an OAM Agent Using the Console in Administrator's Guide for Oracle Access Management.

RREG tool

For complete information about registering WebGate agent using RREG tool, see:

Locating and Preparing the RREG Tool

To set up the RREG tool, complete the following steps:

  1. Log in to one of the Oracle Access Manager hosts in the Application tier.

  2. Change directory to the following directory in the Oracle Access Manager Oracle home:

    Note:

    The location is required only for the out-of-band mode.

    OAM_ORACLE_HOME/oam/server/rreg/client

    In this example, OAM_ORACLE_HOME refers to the Oracle home on the system where the Oracle Access Manager software was installed.

    Note:

    If the Oracle Enterprise Deployment Guide for IDM was used, OAM_ORACLE_HOME may be /u01/oracle/products/access/iam.

    Note:

    If you do not have privileges or access to the Oracle Access Manager server, then you can use out-of-band mode to generate the required files and register the WebGate with Oracle Access Manager. See About RREG In-Band and Out-of-Band Mode.
  3. Unzip the RREG.tar.gz file to the required directory.

  4. From the unzipped directory, open the oamreg.sh file and set the following environment variables in the file, as follows:

    • Set OAM_REG_HOME to the absolute path to the directory in which you extracted the contents of RREG archive.

      Set JAVA_HOME to the absolute path of the directory in which a supported JDK is installed on your machine.

Running the RREG Tool

The following topics provide information about running the RREG tool to register your IHS Webgate with Oracle Access Manager.

About RREG In-Band and Out-of-Band Mode

You can run the RREG Tool in one of two modes: in-band and out-of-band.

Use in-band mode when you have the privileges to access the Oracle Access Manager server and run the RREG tool yourself from the Oracle Access Manager Oracle home. You can then copy the generated artifacts and files to the Web server configuration directory after you run the RREG Tool.

Use out-of-band mode if you do not have privileges or access to the Oracle Access Manager server. For example, in some organizations, only the Oracle Access Manager server administrators have privileges access the server directories and perform administration tasks on the server. In out-of-band mode, the process can work as follows:

  1. The Oracle Access Manager server administrator provides you with a copy of the RREG archive file (RREG.tar.gz).

    The server administrator can find it in the location described in Updating the Standard Properties in the OAM12cRequest.xml File.

  2. Untar the RREG.tar.gz file that was provided to you by the server administrator.

    For example:

    gunzip RREG.tar.gz

    tar -xvf RREG.tar

    After you unpack the RREG archive, you can find the tool for registering the agent in the following location:

    RREG_HOME/bin/oamreg.sh

    In this example, RREG_Home is the directory in which you extracted the contents of RREG archive.

  3. Use the instructions in Updating the Standard Properties in the OAM12cRequest.xml File to update the OAM12cRequest.xml file, and send the completed OAM12cRequest.xml file to the Oracle Access Manager server administrator.

  4. The Oracle Access Manager server administrator then uses the instructions in Running the RREG Tool in Out-Of-Band Mode to run the RREG Tool and generate the AgentID_response.xml file.

  5. The Oracle Access Manager server administrator sends the AgentID_response.xml file to you.

  6. Use the instructions in Running the RREG Tool in Out-Of-Band Mode to run the RREG Tool with the AgentID_response.xml file and generate the required artifacts and files on the client system.

Running the RREG Tool in Out-Of-Band Mode

To run the RREG Tool in out-of-band mode on the WEBHOST server, the administrator uses the following command:

RREG_HOME/bin/oamreg.sh outofband input/OAM12cRequest.xml

In this example:

  • Replace RREG_HOME with the location where the RREG archive file was unpacked on the server.

  • The edited OAM12cRequest.xml file is located in the RREG_HOME/input directory.

  • The RREG Tool saves the output from this command (the AgentID_response.xml file) to the following directory:

    RREG_HOME/output/

    The Oracle Access Manager server administrator can then send the AgentID_response.xml to the user who provided the OAM12cRequest.xml file.

To run the RREG Tool in out-of-band mode on the Web server client machine, use the following command:

RREG_HOME/bin/oamreg.sh outofband input/AgentID_response.xml

In this example:

  • Replace RREG_HOME with the location where you unpacked the RREG archive file on the client system.

  • The AgentID_response.xml file, which was provided by the Oracle Access Manager server administrator, is located in the RREG_HOME/input directory.

  • The RREG Tool saves the output from this command (the artifacts and files required to register the Webgate software) to the following directory on the client machine:

    RREG_HOME/output/
Running the RREG Tool in In-Band Mode

To run the RREG Tool in in-band mode:

  1. Navigate to the RREG home directory.

    If you are using in-band mode, the RREG directory is inside the Oracle Access Manager Oracle home:

    OAM_ORACLE_HOME/oam/server/rreg

    If you are using out-of-band mode, then the RREG home directory is the location where you unpacked the RREG archive.

  2. In the RREG home directory, navigate to the bin directory:

    cd RREG_HOME/bin/
  3. Set the permissions of the oamreg.sh command so you can execute the file:

    chmod +x oamreg.sh
  4. Run the following command:

    ./oamreg.sh inband RREG_HOME/input/OAM12cRequest_edg.xml

In this example:

  • It is assumed the edited OAM12cRequest.xml file is located in the RREG_HOME/input directory.

  • The output from this command will be saved to the following directory:

    RREG_HOME/output/

The following example shows a sample RREG session:

Welcome to OAM Remote Registration Tool!
Parameters passed to the registration tool are: 
Mode: inband
Filename: /u01/oracle/products/fmw/iam_home/oam/server/rreg/client/rreg/input/OAM12cRequest_edg.xml
Enter admin username:weblogic_idm
Username: weblogic_idm
Enter admin password: 
Do you want to enter a Webgate password?(y/n):
n
Do you want to import an URIs file?(y/n):
n

----------------------------------------
Request summary:
OAM12c Agent Name:SOA12214_EDG_AGENT
Base URL: https://soa.example.com:443
URL String:null
Registering in Mode:inband
Your registration request is being sent to the Admin server at: http://host1.example.com:7001
----------------------------------------

Jul 08, 2015 7:18:13 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
Jul 08, 2015 7:18:14 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
Inband registration process completed successfully! Output artifacts are created in the output folder.

Updating the Standard Properties in the OAM12cRequest.xml File

Before you can register the Webgate agent with Oracle Access Manager, you must update some required properties in the OAM12cRequest.xml file.

Note:

If you plan to use the default values for most of the parameters in the provided XML file, then you can use the shorter version (OAM12cRequest_short.xml, in which all non-listed fields will take a default value.

Note:

In the primary server list, the default names are mentioned as OAM_SERVER1 and OAM_SERVER2 for OAM servers. Rename these names in the list if the server names are changed in your environment.

To perform this task:

  1. If you are using in-band mode, then change directory to the following location on one of the OAM Servers:

    OAM_ORACLE_HOME/oam/server/rreg/input

    If you are using out-of-band mode, then change directory to the location where you unpacked the RREG archive on the WEBHOST1 server.

  2. Make a copy of the OAM12cRequest.xml file template with an environment-specific name.

    cp OAM12cRequest.xml OAM12cRequest_edg.xml

  3. Review the properties listed in the file, and then update your copy of the OAM12cRequest.xml file to make sure the properties reference the host names and other values specific to your environment.

OAM12cRequest.xml Property Set to...
serverAddress

The host and the port of the Administration Server for the Oracle Access Manager domain.

agentName

Any custom name for the agent. Typically, you use a name that identifies the Fusion Middleware product you are configuring for single sign-on.

applicationDomain

A value that identifies the Web tier host and the FMW component you are configuring for single sign-on.

security

Must be set to the security mode configured on the Oracle Access Management server. This will be one of three modes: open, simple, or certificate.

Note:

For an enterprise deployment, Oracle recommends simple mode, unless additional requirements exist to implement custom security certificates for the encryption of authentication and authorization traffic.

In most cases, avoid using open mode, because in open mode, traffic to and from the Oracle Access Manager server is not encrypted.

For more information using certificate mode or about Oracle Access Manager supported security modes in general, see Securing Communication Between OAM Servers and WebGates in the Administrator's Guide for Oracle Access Management.

cachePragmaHeader

private

cacheControlHeader

private

ipValidation

0

<ipValidation>0</ipValidation>
ipValidationExceptions

The IP address of the front-end load balancer. For example:

<ipValidationExceptions> <ipAddress>130.35.165.42</ipAddress> </ipValidationExceptions>
agentBaseUrl

Fully-qualified URL with the host and the port of the front-end Load Balancer VIP in front of the WEBHOSTn machines on which Oracle HTTP 12c (12.2.1.4.0) WebGates are installed.

For example:

 <agentBaseUrl>             https://soa.example.com:443             </agentBaseUrl>

virtualHost

Set to true when protecting more than the agentBaseUrl, such as SSO protection for the administrative VIP.

hostPortVariationsList

Add hostPortVariation host and port elements for each of the load-balancer URLs that will be protected by the WebGates.

For example:<hostPortVariationsList>     <hostPortVariations>         <host>soainternal.example.com</host>         <port>80</port>     </hostPortVariations>     <hostPortVariations>         <host>admin.example.com</host>         <port>80</port>     </hostPortVariations> <hostPortVariations>           <host>osb.example.com</host>           <port>443</port>       </hostPortVariations> </hostPortVariationsList>

Copying Generated Files and Artifacts to the IHS 12c WebGate Instance Location

After RREG generates these files and artifacts, you must manually copy them, based on the security mode you are using, from the RREG_Home/output/Agent_ID directory to the WebGate_Instance_Home directory.

Do the following according to the security mode you are using:

  • In OPEN mode, copy the following files from the RREG_Home/output/Agent_ID directory to the WebGate_Instance_Home/webgate/config directory:

    • ObAccessClient.xml

    • cwallet.sso

  • In SIMPLE mode, copy the following files from the RREG_Home/output/Agent_ID directory to the WebGate_Instance_Home/webgate/config directory:

    • ObAccessClient.xml

    • cwallet.sso

    • password.xml

    In addition, copy the following files from the RREG_Home/output/Agent_ID directory to the WebGate_Instance_Home/webgate/config/simple directory:

    • aaa_key.pem

    • aaa_cert.pem

  • In CERT mode, copy the following files from the RREG_Home/output/Agent_ID directory to the WebGate_Instance_Home/webgate/config directory:

    • ObAccessClient.xml

    • cwallet.sso

    • password.xml

Generating a New Certificate

You can generate a new certificate as follows:

  1. Go to the WebGate_Home/webgate/ihs/tools/openssl directory.
  2. Create a certificate request as follows:

    ./openssl req -utf8 -new -nodes -config openssl_silent_ihs12c.cnf -keyout aaa_key.pem -out aaa_req.pem -rand WebGate_Home/webgate/ihs/config/random-seed

  3. Self-sign the certificate as follows:

    ./openssl ca -config openssl_silent_ihs12c.cnf -policy policy_anything -batch -out aaa_cert.pem -infiles aaa_req.pem

  4. Copy the following generated certificates to the WebGate_Instance_Home/webgate/config directory:
    • aaa_key.pem

    • aaa_cert.pem

    • cacert.pem located in the simpleCA directory

      Note:

      After copying the cacert.pem file, you must rename the file to aaa_chain.pem.

Migrating an Existing Certificate

If you want to migrate an existing certificate (aaa_key.pem, aaa_cert.pem, and aaa_chain.pem), then ensure that you use the same passphrase which you used to encrypt aaa_key.pem. You must enter the same passphrase during the RREG registration process. If you do not use the same passphrase, then the password.xml file generated by RREG will not match the passphrase used to encrypt the key.

If you enter the same passphrase, then you can copy these certificates as follows:

  1. Go to the WebGate_Instance_Home/webgate/config directory.
  2. Copy the following certificates to the WebGate_Instance_Home/webgate/config directory:
    • aaa_key.pem

    • aaa_cert.pem

    • aaa_chain.pem

Restarting the IHS Instance

Use the startserv command to start or stopserv command to stop your Apache instance.

To stop the server, run the following command:

/home/bin/stopserv

To start the server, run the following command:

On Linux

export LD_LIBRARY_PATH=/WebGate_Home/lib

/home/bin/startserv

On AIX

export LIBPATH=/home/Oracle_OAMWebGate1/webgate/ihs/lib

export LDR_PRELOAD64=libclntsh.so

/home/bin/startserv

To restart the IHS instance, stop all running instances, and then run the start command.

Starting the IHS Web Server and Accessing the IHS Resource

To start the IHS web server:

  • On Linux

    Run the following command:

    /IBM/HTTPServer/bin/apachectl -k start

  • On AIX

    1. Go to the httpd.conf file at /IHS/HTTPServer/conf/httpd.conf, open it in a text editor, and add the following:

      ThreadStackSize 2097152

    2. Run the following command:

      /IBM/HTTPServer/bin/apachectl -k start

After you start the IHS Web Server, log in to it by using the following URL:

http://machine_name.my.company.com:port

WebGate intercepts the request and redirects you to the Oracle Access Manager console. Enter the username and password, and you are redirected to the IBM HTTP Server.

Deinstalling IHS 12c WebGate

You should always use the instructions provided in this section for removing the IHS 12c WebGate. If you try to remove the software manually, thne you may experience problems when you try to reinstall the software again at a later time. Following the procedures in this chapter will ensure that the software is properly removed.

To deinstall the IHS WebGate, do the following:

  1. Go to the MW_HOME/Webgate_Home/oui/bin directory
  2. Run the following command:

    ./deinstall.sh

After the Installer starts, the Welcome screen is displayed, proceed with deinstallation.

Deinstallation Screens and Instructions

Follow the instructions in Table 5-2 to complete the deinstallation.

If you need additional help with any of the deinstallation screens, then click Help to access the online help.

Table 5-2 Deinstallation Flow

Sl. No. Screen Description Action Required

1.

Welcome

Each time the deinstaller starts, the Welcome screen is displayed.

Click Next.

2.

Deinstall Oracle Home

The Deinstall Oracle Home screen shows the Oracle home you are about to deinstall.

Verify the Oracle home you are about to deinstall.

Click Deinstall.

On the Warning screen, select whether or not you want the deinstaller to remove the Oracle home directory in addition to removing the software.

Click Yes to have the deinstaller remove the software and Oracle home, No to remove only the software, or Cancel to return to the previous screen.

If you select No, go to Manually Removing the Oracle Home Directory for instructions on how to manually remove your Oracle home directory.

3.

Deinstallation progress

The Deinstallation Progress screen shows the progress and status of the deinstallation.

Wait until the Deinstallation Complete screen appears.

4.

Deinstallation Complete

The Deinstallation Complete screen appears when the deinstallation is complete.

Click Finish to dismiss the screen.

Manually Removing the Oracle Home Directory

If you have selected No on the warning screen during deinstallation, then you must manually remove your WebGate_Home directory and any sub-directories. For example: if your Oracle WebGate home directory was /home/Oracle/Middleware/Oracle_OAMWebGate1, run the following command:

cd /home/Oracle/Middleware/

rm -rf Oracle_OAMWebGate1

On Windows, if your Oracle Common home directory was C:\Oracle\Middleware\Oracle_OAMWebGate1, then use a file manager window, go to the C:\Oracle\Middleware directory, right-click on the Oracle_OAMWebGate1 folder, and then select Delete.

Silent Installation for IHS 12c WebGate

To run the IHS 12c WebGate in silent mode, complete the following steps:

  1. Set the contents of the silent.rsp file. For example:
    [ENGINE]
    #DO NOT CHANGE THIS.
    Response File Version=1.0.0.0.0
    [GENERIC]
    ORACLE_HOME=/home/MW_HOME/ihs_WebGate_home
    MIDDLEWARE_HOME=/home/MW_HOME
    [SYSTEM]
    [APPLICATIONS]
    [RELATIONSHIPS]

    In the preceding file, the parameters are as follows:

    • ORACLE_HOME: Provide the Oracle home location. This is the directory in which you want to install the new IHS WebGate. The location must be an immediate child folder under the specified Middleware home location. The Oracle home directory name can contain only alphanumeric, hyphen (-), dot (.), and underscore (_) characters, and must begin with an alphanumeric character. The total length must be less than or equal to 128 characters. For example, home/middleware/ihs_webgate.

    • MIDDLEWARE_HOME: Specify the full path to your Middleware home directory.

  2. Extract the contents of the installer to a directory.
  3. Run the following command:

    fmw_12.2.1.4.0_ihswebgate_linux64.bin -invPtrLoc Absolute_Path_Of_the_oraInst.loc_file -silent -response Absolute_Path_Of_the_silent.rsp_file

    In the preceding command:

    • Absolute_Path_Of_the_oraInst.loc_file is the absolute path to the oraInst.loc file.

    • Absolute_Path_Of_the_ silent.rsp_file is the absolute path to the silent.rsp file you created.