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
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).
- 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.
- 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 Knowledge Base Article - Public