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.
Configuration Steps for the Connectivity Agent Only
If you are using the connectivity agent, first follow these steps to configure two-way, SSL communication.
- Open the
InstallerProfile.cfgfile in theoic_conn_agent_installerdirectory.You downloaded and updated the
InstallerProfile.cfgfile during connectivity agent installation and configuration. See Download and Install the Connectivity Agent in Using Integrations in Oracle Integration 3. - Add the following line.
enable_mtls=true - Stop and restart the connectivity agent.
java -jar connectivity-agent.jarSee Restart the Connectivity Agent in Using Integrations in Oracle Integration 3.
- 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_passwordAn
identity_repo.conffile is created in thecertdirectory. If you restart the connectivity agent, the identity certificate directory path and encrypted password are automatically retrieved from this file. - 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.
- Create and configure a REST Adapter invoke connection. See Create a REST Adapter Connection.
- 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.
- Configure the security policy to use.
- 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.
- Complete integration design and activation.
When you run the integration, the REST Adapter invoke connection successfully accesses the on-premises endpoint.