Configure Public Gateway or Connectivity Agent-Based mTLS Communication with the REST Adapter

You can configure public gateway or connectivity agent-based mutual transport layer security (mTLS) to access cloud or on-premises endpoints with the REST Adapter. This feature provides two-way, SSL communication when using the public gateway or connectivity agent to make REST calls.

mTLS enhances standard TLS security by requiring the client and server to both authenticate each other with digital certificates before establishing a connection. mTLS provides two-way authentication to ensure that both parties in communication are legitimate and trusted, creating a more secure, encrypted connection.

Configuration Steps for the Connectivity Agent Only

If you are using the connectivity agent, first follow these steps to configure two-way, SSL communication.

  1. Open the InstallerProfile.cfg file in the oic_conn_agent_installer directory.

    You downloaded and updated the InstallerProfile.cfg file during connectivity agent installation and configuration. See Download and Install the Connectivity Agent in Using Integrations in Oracle Integration 3.

  2. Add the following line.
    enable_mtls=true
  3. Stop and restart the connectivity agent.
    java -jar connectivity-agent.jar

    See Restart the Connectivity Agent in Using Integrations in Oracle Integration 3.

  4. Enter the complete path to the identity certificate and password when prompted. For example:
    mTLS is enabled in the InstallerProfile.cfg file. Please provide the identity repo details. 
    Enter Identity Certificate absolute path (.pk12) : /Volumes/WORK/identity_keystore.p12
    Enter Identity certificate password : certificate_password

    An identity_repo.conf file is created in the cert directory. If you restart the connectivity agent, the identity certificate directory path and encrypted password are automatically retrieved from this file.

  5. If you stop and restart the connectivity agent, the following message appears.
    mTLS is enabled and the identity repo details are already available. 
    If you want to load a different keystore, delete the agenthome/agent/cert/identity_repo.conf 
    file and restart the agent.

Configuration Steps for the Public Gateway Only

You must add the public certificate of the HTTPS URL. After that, you must create a JKS certificate with a private key file. You must upload the JKS certificate as an identity certificate. See Upload a Certificate to Connect with External Services.

Configuration Steps for Both the Public Gateway and the Connectivity Agent

Follow these steps to complete configure two-way, SSL communication for both the public gateway and connectivity agent.

  1. Create and configure a REST Adapter invoke connection. See Create a REST Adapter Connection.
    1. When configuring the Properties section, ensure that you expand the Optional parameters section and select Yes from the Enable two-way SSL for outbound connections (Optional) list.
    2. Configure the security policy to use.
    3. In the Access type section, select the option for accessing your endpoint:
      • Public gateway: Connect to endpoints using the public gateway.
      • Connectivity agent: Connect to on-premises endpoints through the connectivity agent. Select the agent group associated with the connectivity agent.

      See Configure the Endpoint Access Type.

  2. Complete integration design and activation.

    When you run the integration, the REST Adapter invoke connection successfully accesses the on-premises endpoint.