A connection to an external HTTPS endpoint fails on certificate trust

A job or a connector fails to connect over TLS when the certificate of the endpoint is signed by a certificate authority that the job does not trust.

Symptoms

A job or a connector fails to connect to an external endpoint over TLS, with an error such as PKIX path building failed or SSLHandshakeException.

Cause

The certificate of the endpoint is signed by a certificate authority (CA) that the job does not trust.

The Anywhere Cloud CA is not included in SSB or in the job pods. Jobs trust only the default certificates of the Java runtime and the certificates that you configure in SSB. Adding a CA to the trust store of the platform has no effect on the jobs.

Solution

  1. For a Kafka data source, give the job the CA certificate in the connector options, for example:
    'properties.security.protocol' = 'SSL',
    'properties.ssl.truststore.type' = 'PEM',
    'properties.ssl.truststore.certificates' = '-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----'
  2. For other connectors, configure the trust in SSB for each connector, with the truststore options of that connector.