REST does not pick up new certificates from keystore without restart
search cancel

REST does not pick up new certificates from keystore without restart

book

Article ID: 437425

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation Automic Automation

Issue/Introduction

When replacing an expiring SSL/TLS certificate in the keystore, the JCP (Java Communication Process) may detect and pick up the new certificate automatically. However, the REST process continues to use the old/expired certificate. This can result in the following:

  • AWI Search Failures: Global search in the Automic Web Interface (AWI) returns "No results" or fails to load, as it relies on the REST API.
  • AWI Logs: Reporting that the certificate for the REST port (e.g., 8088) has expired.  This is reported as connectivity failures to the REST endpoint.

    [WARN ] ... [com.uc4.ecc.backends.impl.dataservice.connection.RestConnectionService] - Can't connect to REST endpoint 'https://[Host]:[Port]': {}
  • Interface Issues: "Odd things happening" within the AWI interface due to failed REST communication which can include but are not limited to: the inability to select recipients in notifications, calendar events, or objects in the Workflow designer.
  • Error Messages:
    • U00045393 SSL Certificate invalid: The validity period of the certificate has expired or not yet reached
    • javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
    • Caused by: java.security.cert.CertificateExpiredException: NotAfter: [Date]

Environment

  • Automic Automation 21.0, 24.x, 26.x
  • REST API has TLS/SSL enabled (sslenabled=1)

Cause

This is a product defect (DE186798). While standard JCPs monitor the keystore and refresh certificates automatically, the REST process (JCP REST) initializes its SSL context only during startup. It does not re-examine the keystore for changes while running.

Resolution

This behavior is fixed with Automation Engine 26.1.0 (Available) and is planned to be fixed with Automation Engine 24.4.6 (planned release October, 2026). Please subscribe to this article (see How to subscribe to Knowledge Base articles) to be updated on the fix status.

Workaround

To apply a new or updated certificate to the REST process and restore functionality (including AWI search):

  1. Update Keystore: Add the new certificate to the keystore (ensure the alias and password match the ucsrv.ini configuration).
  2. Clean Up: Remove any old or expired certificates from the keystore to prevent conflicts.
  3. Restart REST Process: Manually stop and restart the REST process(es) (identified as type REST in the Administration perspective).
  4. Verification:
    • Use openssl s_client -connect [Host]:[Port] to verify the new certificate is being presented.
    • Log back into the AWI and confirm the search functionality is operational.