---
title: Secure connections
description: Configure TLS for PingAM Web Agent using OpenSSL or Windows Schannel, including server certificate validation, client certificate authentication, and FIPS 140 compliance.
component: web-agents
version: 2024.11
page_id: web-agents:installation-guide:secure-connections
canonical_url: https://docs.pingidentity.com/web-agents/2026/installation-guide/secure-connections.html
llms_txt: https://docs.pingidentity.com/web-agents/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2026-06-04T10:56:15Z
superseded_by: https://docs.pingidentity.com/web-agents/2026/installation-guide/secure-connections.html
section_ids:
  securing-agent-am-communication: Secure communication between the agent and AM
  openssl-config: Secure communication with OpenSSL
  configure-server-validation-openssl: Configure server certificate validation using OpenSSL
  configure-client-cert-auth-openssl: Configure client certificate authentication using OpenSSL
  native-win-ssl-config: Secure communication with Schannel
  configure-server-validation-schannel: Configure server certificate validation using Schannel
  configure-client-cert-auth-schannel: Configure client certificate authentication using Schannel
---

# Secure connections

## Secure communication between the agent and AM

|   |                                                                                                                                                               |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Be aware of security breaches and vulnerabilities. Make sure your environment isn't using outdated, insecure protocols, such as SSL 3.0, TLS 1.0, and others. |

To secure communications, configure the agent to validate server certificates installed in the server where AM runs and to present a client certificate to AM. Learn more in AM's [Secure HTTP and LDAP connections](https://docs.pingidentity.com/pingam/7.5/security/secure-connections.html).

To facilitate integration and test, Web Agent is configured by default to trust any server certificate. Test client certificates aren't provided or configured.

To send cookies only when the communication channel is secure, set [Enable Cookie Security](../properties-reference/com.sun.identity.agents.config.cookie.secure.html) to `true`.

## Secure communication with OpenSSL

Unix-based agents support OpenSSL libraries. Windows-based agents can use OpenSSL or the [Windows Secure Channel API (Schannel)](post-installation.html#native-win-ssl-config).

|   |                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | If you want to use OpenSSL for the IIS, ISAPI, or Windows Apache agent, configure the agent to use OpenSSL before continuing:- Make sure the [OpenSSL libraries](pre-installation.html#pre-SSL-configuration) are in the correct location.

- Disable Schannel by setting the [Enable OpenSSL to Secure Internal Communications](../properties-reference/org.forgerock.agents.config.secure.channel.disable.html) property to `true`. |

### Configure server certificate validation using OpenSSL

Perform the following steps to configure the agent to validate AM's or Advanced Identity Cloud's server certificate:

1. Set the [Server Certificate Trust](../properties-reference/com.sun.identity.agents.config.trust.server.certs.html) property to `false`.

   |   |                                                                                                                                                                 |
   | - | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | The [Server Certificate Trust](../properties-reference/com.sun.identity.agents.config.trust.server.certs.html) property should always be `false` in production. |

2. Set the [CA Certificate File Name](../properties-reference/com.forgerock.agents.config.cert.ca.file.html) property to the filename of the CA bundle for your system. The exact location and name of the CRT file varies by operating system. For example, for Ubuntu, it's `/etc/ssl/certs/ca-certificates.crt`.

3. Set the [OpenSSL Certificate Verification Depth](../properties-reference/org.forgerock.agents.config.cert.verify.depth.html) property to the level of certificate validation required in your environment.

4. Restart the agent.

### Configure client certificate authentication using OpenSSL

When AM or Advanced Identity Cloud are configured to perform client authentication, you must configure the agent to present its client certificates as follows:

1. Create a PEM file that contains the certificate chain for the agent. For example, `client-cert.pem`.

2. Create a PEM file that contains the private key corresponding to the certificate. For example, `client-private-key.pem`.

3. Set the [Public Client Certificate File Name](../properties-reference/com.forgerock.agents.config.cert.file.html) property to the file containing the certificate chain. For example:

   * Unix

   * Windows

   ```
   com.forgerock.agents.config.cert.file = /opt/certificates/client-cert.pem
   ```

   ```
   com.forgerock.agents.config.cert.file = C:\Certificates\client-cert.pem
   ```

4. Set the [Private Client Certificate File Name](../properties-reference/com.forgerock.agents.config.cert.key.html) property to the file containing the client certificate private key. For example:

   * Unix

   * Windows

   ```
   com.forgerock.agents.config.cert.key = /opt/certificates/client-private-key.pem
   ```

   ```
   com.forgerock.agents.config.cert.key = C:\Certificates\client-private-key.pem
   ```

5. If the private key is password-protected:

   1. Obfuscate the password using the `agentadmin --p` command. For example:

      * Unix

      * Windows

      ```
      $ /path/to/web_agents/agent_type/bin/> agentadmin --p encryption-Key "cat certificate_password.file"
      Encrypted password value: zck+6RKqjtc=
      ```

      ```
      C:\path\to\web_agents\agent_type\bin> agentadmin.exe --p encryption-Key "Certificate_File_Password"
      Encrypted password value: zck+6RKqjtc=
      ```

      Where encryption-Key is the value of the [Agent Profile Password Encryption Key](../properties-reference/com.sun.identity.agents.config.key.html) property.

   2. Set the [Private Key Password](../properties-reference/com.forgerock.agents.config.cert.key.password.html) property to the encrypted password value. For example:

      ```none
      com.forgerock.agents.config.cert.key.password = zck+6RKqjtc=
      ```

6. Restart the agent.

|   |                                                                                                                                                      |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Use the [`agentadmin --Vi` command](agentadmin.html#vi) to validate the TLS connection settings between the agent and AM or Advanced Identity Cloud. |

## Secure communication with Schannel

By default, IIS, ISAPI, and Apache for Windows agents use the Windows built-in Secure Channel API (Schannel). Alternatively, you can use OpenSSL as described in [Secure internal communication with OpenSSL](post-installation.html#openssl-config).

|   |                                                                                                                                                                                                                                                                                                                                                                                                                   |
| - | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Before continuing, make sure the agent is configured to use Schannel:- If this is a new installation, Windows-based agents use Schannel by default.

- If you've previously configured the IIS, ISAPI, or Apache agent to use OpenSSL libraries, set the [Enable OpenSSL to Secure Internal Communications](../properties-reference/org.forgerock.agents.config.secure.channel.disable.html) property to `false`. |

### Configure server certificate validation using Schannel

Perform the following steps to configure the agent to validate AM's or Advanced Identity Cloud's server certificate:

1. Set the [Server Certificate Trust](../properties-reference/com.sun.identity.agents.config.trust.server.certs.html) property to `false`.

   |   |                                                                                                                                                                 |
   | - | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | The [Server Certificate Trust](../properties-reference/com.sun.identity.agents.config.trust.server.certs.html) property should always be `false` in production. |

2. If you're using self-signed certificates or the server certificate is issued from a new CA, add the certificates required to validate AM's or Advanced Identity Cloud's server certificate to the Windows certificate store. For example, to use PowerShell, add certificates to the following locations:

   * **Root CA certificates**: add them to the `Cert:\LocalMachine\Root` location.

   * **Intermediate CA certificates**: add them to the `Cert:\LocalMachine\Ca` location.

3. Restart the agent.

### Configure client certificate authentication using Schannel

When AM or Advanced Identity Cloud are configured to perform client authentication, you must configure the agent to present its client certificates using one of the following methods.

The method you use depends on whether you are loading the client certificate through the Windows certificate store or through a PFX certificate:

* Agent authenticates using a client certificate stored in the Windows Certificate store

  Configure the agent to present its client certificate as follows:

  1. Import the client certificate chain and private key into the Windows certificate store. For example, for PowerShell, import them to `Cert:\LocalMachine\My`.

  2. Set the [Public Client Certificate File Name](../properties-reference/com.forgerock.agents.config.cert.file.html) property to the friendly name of the client certificate chain. For example:

     ```none
     com.forgerock.agents.config.cert.file = agent.example.com
     ```

     ![Friendly name of the client certificate imported into the Windows certificate store.](_images/windows-cert-friendly-name.png)

  3. Restart the agent.

* Agent authenticates using a PFX file that contains the certificate chain

  Configure the agent to present its client certificate as follows:

  1. Create a Personal Information Exchange (PFX) file that contains the certificate chain for the agent and its private key. For example, `client.pfx` .

  2. Set the [Public Client Certificate File Name](../properties-reference/com.forgerock.agents.config.cert.file.html) property to the PFX file you just created. For example:

     ```none
     com.forgerock.agents.config.cert.file = C:\Certificates\client.pfx
     ```

  3. Obfuscate the certificate password using the `agentadmin --p` command. For example:

     ```
     C:\path\to\web_agents\agent_type\bin> agentadmin.exe --p encryption-Key "Certificate_File_Password"
     Encrypted password value: zck+6RKqjtc=
     ```

     Where encryption-Key is the value of the [Agent Profile Password Encryption Key](../properties-reference/com.sun.identity.agents.config.key.html) property.

  4. Set the [Private Key Password](../properties-reference/com.forgerock.agents.config.cert.key.password.html) property to the encrypted password value. For example:

     ```none
     com.forgerock.agents.config.cert.key.password = zck+6RKqjtc=
     ```

  5. Restart the agent.

|   |                                                                                                                                                      |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Use the [`agentadmin --Vi` command](agentadmin.html#vi) to validate the TLS connection settings between the agent and AM or Advanced Identity Cloud. |
