Renew a Workato On-Prem Agent (OPA) Certificate

  • Updated

Renew a Workato On-Prem Agent (OPA) certificate before it expires. To maintain uninterrupted connectivity between Workato and your on-premise environment.

To help prevent certificate expiration issues, Unimarket automatically displays a notification in the customer's Workato workspace and creates a support ticket with the Unimarket Support team 30 days before the certificate expires.

 

Prerequisites

Before starting, ensure that:

  • You have administrator access to the Workato workspace.
  • You have access to the existing OPA host server.
  • The existing OPA is operational.
  • You can create a new agent within the same Workato On-Prem Group.
  • You have saved the activation code for the new agent. The code expires about one hour after it is generated, so generate it just before you run the activation script. Select Regenerate code in the setup wizard if it lapses.
  • You have appropriate permissions to access the OPA installation directory.

 

Optional: Request Access to the Workato Workspace

If you do not already have access:

  1. Create a free Workato account at Workato Sign Up.
  2. Email Unimarket Support and request the Collaborator role for your organization's Workato workspace.
  3. Once access is granted, you can manage the certificate renewal process directly.

 

Step 1: Create a New On-Prem Agent

  • In Workato, create a new On-Prem Agent in the same On-Prem Group as the existing agent.
  • Name the new agent using the format:

    {Customer Name} PROD OPA 2026
  • Complete the agent creation process.
  • Copy and save the Activation Code displayed during setup.

Note: You do not need to download or install a new agent unless you are also performing an agent upgrade.

 

Step 2: Backup the Existing Certificate Files

Windows

  1. Navigate to the conf folder within the existing OPA installation directory. 
    Default location: C:\Program Files\Workato Agent\conf

  2. Move cert.pem and cert.key to a secure backup location.

Linux (RPM install)

On an RPM install, the certificate files are stored in /etc/workato-agent/. There is no separate conf folder: /usr/lib/workato-agent/conf is a symbolic link to /etc/workato-agent.


NOTE: The workato service account has a nologin shell and no home directory by design. su - workato fails with "This account is currently not available". Use the -s /bin/bash form shown below instead. Do not change the account's shell.

  1. Stop the agent service and confirm it is stopped:

    • sudo systemctl stop workato-agent 
    • systemctl is-active workato-agent

    The second command should return inactive.

     

  2. Back up the old certificate and key to a restricted location, as your admin user:

    • sudo mkdir -p -m 700 /root/opa-cert-backup
    • sudo cp -p /etc/workato-agent/cert.pem /etc/workato-agent/cert.key /root/opa-cert-backup/
  3. Open a shell as the workato user and confirm the files:

    • sudo su -s /bin/bash workato
    • whoami
    • cd /etc/workato-agent
    • ls -la

    whoami should return workato. You should see cert.pem, cert.key, and config.yml.sample. A warning about the home directory is harmless.

     

  4. Remove only the two expired certificate files:

    rm cert.pem cert.key

    Do not remove any other file. If a config.yml exists, leave it in place.

 

Step 3: Generate a New Certificate

Windows

  1. Open a command prompt or terminal and change to the Workato Agent bin directory. 
    Default location: C:\Program Files\Workato Agent\bin
     

  2. Run the activation script using the activation code from Step 1:

    activate.cmd --code=ACTIVATION_CODE

  3. Confirm that new versions of cert.pem and cert.key are generated.

Linux (RPM install)

Continue in the workato shell from Step 2.

  1. Run the activation script using its full path and the activation code from Step 1:

    /usr/lib/workato-agent/bin/activate.sh --code=ACTIVATION_CODE

  2. Confirm that new certificate files were created, dated today and owned by workato:

    ls -la /etc/workato-agent

  3. Leave the workato shell:

    exit

NOTE: The script is named activate.sh on Linux, not activate.cmd or activate. Use the full path, because a relative bin/activate.sh only works from inside /usr/lib/workato-agent.If the script is not at that path, locate it with rpm -ql workato-agent | grep -i activate.If the server uses a proxy, run the script with --help first to see the additional proxy parameters.
 

Linux only: Restart the agent service

The agent reads its certificate only when it starts. If the service is started or already running before activation completes, it keeps using the old certificate and Workato cannot contact it. Restart it after the new files exist.

Run these as your admin user with sudo, not from inside the workato shell. The workato account has no sudo rights, and systemctl will fail with an authentication error there.

  • sudo systemctl restart workato-agent 
  • sudo systemctl enable workato-agent
  • sudo systemctl status workato-agent
  • sudo journalctl -u workato-agent -n 50 --no-pager

The status should show active (running) with a start time of just now.

 

Step 4: Validate the New Agent

  • Return to the Workato workspace and open the newly created agent.
  • Select Test (or Retest agent if you tested earlier). Allow a minute after a restart for the agent to check in.
  • Verify that the agent status displays as Active.
  • Check the Valid until date, which should be about one year out, and the agent Version.

  • Select Done.

The existing OPA installation is now associated with the new agent and certificate.

 

Step 5: Remove the Old Agent

NOTE: You can also leave the old agent disabled for a few days as a fallback before deleting it.

  • Locate the original agent in the Workato agent list.
  • In the Version column, select the ellipsis (...).
  • Select Delete Agent.
  • Confirm the deletion.

 

Results

You have successfully renewed the Workato OPA certificate. Verify the renewal by confirming that:

  • The new agent status is Active.
  • Connections and recipes using the OPA function normally.
  • A new certificate has been generated.
  • The certificate expiration date is approximately one year from the generation date.
  • On Linux, systemctl is-enabled workato-agent returns enabled, so the agent starts after a reboot.

 

Optional (Linux RPM): Upgrade the Agent at the Same Time 

If you are also upgrading the agent, do it before the certificate steps, so the service needs only one clean restart afterward.

  1. Stop the service: sudo systemctl stop workato-agent

  2. Upgrade the package: sudo yum upgrade workato-agent.x86_64

  3. Confirm the installed version: rpm -q workato-agent

  4. Stop the service again if the upgrade restarted it: sudo systemctl stop workato-agent

  5. Continue with Step 2 (the service is already stopped).

The upgrade keeps your existing certificate directory. See the Workato documentation, Upgrade an agent, for details. Agents installed from a data-center-specific package (-eu, -sg, -jp, -au) must be replaced with the single package distribution, so contact Unimarket Support before upgrading those.

 

Limits and Notes

  • OPA certificates are valid for one year from the generation date.

  • Unimarket generates renewal notifications and support tickets 30 days before certificate expiration.

  • Certificate renewal can be completed by customer IT staff with appropriate Workato access, or by the Unimarket Integration team on behalf of the customer.

  • Renewing the certificate does not require an agent upgrade.

  • The Workato private key (cert.key) is not available to Workato. Protect it and any backup copy from unauthorized access.

  • Confirm install paths with rpm -ql workato-agent if your server differs from the defaults above.

 

Troubleshooting (Linux RPM)

Symptom

Cause

Fix

This account is currently not available when running su - workato

The workato service account uses a nologin shell by design

Use sudo su -s /bin/bash workato, or run single commands with sudo -u workato

No such file or directory for bin/activate.sh

Relative path used from the wrong directory

Use the full path /usr/lib/workato-agent/bin/activate.sh, or find it with rpm -ql workato-agent | grep -i activate

Authentication is required to start 'workato-agent.service'

systemctl was run from inside the workato shell, which has no sudo rights

Type exit, then run sudo systemctl ... as your admin user

Service shows active (running) but Workato says "We can't contact the agent"

The service started before the new certificate files were created and is still using the old ones

Confirm new cert.pem and cert.key are dated today, then run sudo systemctl restart workato-agent and retest

Activation fails or the code is rejected

The activation code expired (about one hour) or was already used

Select Regenerate code in the Workato setup wizard and run the script again

Permission denied on certificate files, or the service will not read them

Files owned by the wrong user

Run sudo chown -R workato:workato /etc/workato-agent/ /usr/lib/workato-agent/, then restart the service

Test fails with connection errors, or the journal shows timeouts

Firewall or allowlist blocking Workato

Allow outbound port 443 to the Workato gateways (sg3.workato.com, sg4.workato.com) and retest

Service times out on start, or native library errors in the journal

Hardened host settings (for example, TimeoutStartSec too short or /tmp mounted noexec)

See the internal page "Workato OPA on Oracle Linux 9 (RPM) - Known Install/Upgrade Issues"

 

What's Next/Related