SAP Knowledge Base Article - Public

3844507 - TLS/mTLS Certificate Requirements for SAP TH - Inbound vs Outbound Scenarios

Symptom

While configuring HTTPS or SOAP communication with TLS/mTLS in SAP Integration Suite (Cloud Integration), one or more of the following issues may occur:

  • SSL handshake failures
  • X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
  • PKIX Path Building Failed
  • Received fatal alert: bad_certificate
  • Received fatal alert: certificate_unknown
  • Certificate does not permit requested usage
  • Mutual TLS authentication failures between Cloud Integration and partner systems

Environment

SAP Traceability Hub

Cause

The certificate being used for TLS/mTLS authentication does not contain the required Key Usage (KU) and/or Extended Key Usage (EKU) extensions, or the certificate chain is not trusted by the participating systems.

Resolution

For TLS communication, certificates should typically contain:

Key Usage:

  • For RSA certificates:
    • Digital Signature & Key Encipherment.
  • For ECC certificates:
    • Digital Signature & Key Agreement.

Extended Key Usage:

  • Server Authentication 
    OID: 1.3.6.1.5.5.7.3.1
  • Client Authentication
    OID: 1.3.6.1.5.5.7.3.2

Scenario 1: Inbound mTLS
Communication Flow: External Sender System ---> SAP Integration Suite (CPI)/ SAP TH

In this scenario:

  • SAP TH acts as the HTTPS Server.
  • Sender system acts as the HTTPS Client.
  • SAP TH validates the client certificate presented by the sender.

Certificate Requirements:

The server certificate exposed by SAP TH System should contain:

  • Key Usage:
    • Digital Signature.
    • Key Encipherment.
  • Extended Key Usage:
    • Server Authentication (1.3.6.1.5.5.7.3.1).
The client certificate presented by the sender should contain:
  • Key Usage:
    • Digital Signature.
  • Extended Key Usage:
    • Client Authentication (1.3.6.1.5.5.7.3.2).
 

Scenario 2: Outbound mTLS
Communication Flow: SAP Integration Suite (CPI)/ SAP TH --> Receiver System

In this scenario:

  • SAP TH acts as the TLS Client.
  • The receiver acts as the TLS Server.
  • The receiver validates the client certificate presented by SAP TH.

Certificate Requirements:

The certificate stored in the SAP TH should contain:

  • Key Usage:
    • Digital Signature.
    • Key Encipherment.
  • Extended Key Usage:
    • Client Authentication.
The receiver server certificate should contain:
  • Key Usage:
    • Digital Signature.
    • Key Encipherment.
  • Extended Key Usage:
    • Server Authentication.

Before opening an SAP Support incident, verify the following:

  • Certificate is within its validity period.
  • Certificate contains the required KU and EKU extensions.
  • Complete certificate chain is available.
  • Root and Intermediate CA certificates are trusted.
  • Subject Alternative Name (SAN) matches the target hostname.
  • Correct certificate alias is configured in the adapter.
  • Private key is present for outbound client authentication.
  • SHA-256 or stronger signature algorithms are used.

Keywords

SAP Integration Suite, CPI, Cloud Integration, TLS, SSL, mTLS, Mutual TLS, HTTPS Adapter, SOAP Adapter, Certificate Authentication, Key Usage, Extended Key Usage, Client Authentication, Server Authentication, PKIX Path Building Failed, X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY, Keystore, Trust Store, Authorized Clients.
, KBA , IS-LS-TH-NET-CER , SAP Traceability Hub Message Exchange Issues Certificates , Bug Filed

Product

SAP Traceability Hub all versions