Loading

Flex Gateway Upstream Remote Connection Failure with TLS

Julkaisupäivä: Oct 27, 2026
Kuvaus

When routing requests through Flex Gateway to an HTTPS upstream service, the downstream call reaches the gateway, but the upstream connection fails.

Without an upstream TLS context configured, Flex Gateway logs the following certificate verification failure when communicating with an upstream service using an internal Certificate Authority (CA):

upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: TLS_error:|268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED:verify cert failed: X509_verify_cert: certificate verification error at depth 2: self signed certificate in certificate chain:TLS_error_end

After adding an Upstream TLS Context with a Trust Store containing the private CA, the error changes to:

upstream connect error or disconnect/reset before headers. reset reason: remote connection failure
Ratkaisu

CAUSE

The initial failure occurs because Flex Gateway defaults to the host operating system trust store, which does not trust certificates issued by private internal CAs.

The subsequent remote connection failure occurs because the Outbound TLS Context enforces a minimum TLS version of 1.3, but the upstream service only supports TLS 1.2. The TLS handshake fails immediately due to the protocol version mismatch.

SOLUTION

Adjust the Outbound TLS Context configuration to permit TLS 1.2.

  1. Log in to Anypoint Platform and navigate to Secret Manager.
  2. Open the Secret Group associated with your Flex Gateway deployment.
  3. Under Secrets, select TLS Context and edit the existing outbound TLS context applied to the upstream.
  4. Set the Minimum TLS Version to 1.2.
  5. Save the updated TLS context.
  6. In API Manager, ensure the API instance applies this updated TLS context to the upstream configuration.

Verify:

Send a request to the Flex Gateway listener endpoint. The gateway successfully negotiates the TLS handshake with the upstream service without returning a remote connection failure.

APPLIES TO

  • Flex Gateway
  • Anypoint Platform Secret Manager
  • Flex Gateway on Linux, Kubernetes, or Docker
Knowledge-artikkelin numero

005462466

 
Ladataan
Salesforce Help | Article