Basis · Intermediate · Configuration
How to import an SSL certificate in SAP STRUST
Let the ABAP system trust an external HTTPS server by adding the issuing certificate to the certificate list of the correct SSL client PSE, then prove it with a connection test.
- APPLICABILITY
- AS ABAP systems (ECC, S/4HANA on-premise and private cloud) calling external HTTPS endpoints. In SAP BTP ABAP environment and S/4HANA Cloud Public Edition, trust is maintained in the Maintain Certificate Trust List app instead.
- TOOLS / TRANSACTIONS
- STRUST · SMICM · SM59
Your project assignment
A new outbound interface in the sandbox system calls the hypothetical endpoint https://api.partner.example.com. The SM59 connection test ends with an SSL handshake error. You must make the system trust the partner's certificate authority and document the change.
Where to start: URLs and transactions
- SAP GUI transaction
- STRUST
- ICM monitor
- SMICM
- SAP Help Portal: Creating the Standard SSL Client PSE
- https://help.sap.com/doc/saphelp_em900/9.0/en-US/49/26ada239242583e10000000a421937/content.htm
Prerequisites
- Basis authorization for the Trust Manager and for the ICM monitor.
- The root or intermediate CA certificate of the target server, obtained from a trusted channel and saved as a file.
- An SM59 destination of type G, or another HTTPS client call, that currently fails and can be retested.
Configuration workflow
Trusting an external HTTPS server
All steps visible. Play or advance one stage at a time.
Hands-on implementation — step by step
Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.
- 1
SM59 → destination → Logon & Security
Open the failing HTTPS destination and note which SSL client certificate (PSE) is selected in the SSL section, and that SSL is set to active.
SM59 → destination → Logon & SecurityERPClimb · illustrative screen - Destination
ZPARTNER_API (hypothetical)- SSL
Active- SSL certificate
DEFAULT SSL Client (Standard)
Expected result: You know which PSE the call uses.
Why this matters: The certificate must be imported into exactly this PSE.
- 2
Obtain the CA certificate
Get the root or intermediate CA certificate of the partner server from the partner or your security team and save it as a file in a location you can reach from SAP GUI.
Obtain the CA certificateERPClimb · illustrative screen - File
partner-root-ca.cer (hypothetical)- Format
Base64 or binary X.509
Expected result: A verified certificate file is available.
Why this matters: Trusting a certificate from an unverified source defeats the purpose of TLS.
- 3
STRUST → SSL client SSL Client (Standard)
Start STRUST, switch to change mode and double-click the SSL client SSL Client (Standard) node. If the node shows no PSE, stop and ask Basis to create the standard SSL client PSE first.
STRUST → SSL client SSL Client (Standard)ERPClimb · illustrative screen - Node
SSL client SSL Client (Standard)- Mode
Change
Expected result: The PSE opens and its own certificate and certificate list are shown.
Why this matters: The standard SSL client PSE is the one used by default for outgoing HTTPS connections.
- 4
Certificate → Import certificate
In the Certificate section choose Import certificate, select the file on the File tab and confirm. Check the subject, issuer and validity dates that are displayed.
Certificate → Import certificateERPClimb · illustrative screen - Tab
File- Subject
CN=Example Partner Root CA (hypothetical)- Valid to
A future date
Expected result: The certificate details are shown in the Certificate section.
Why this matters: Reading the details before adding the certificate catches wrong or expired files.
- 5
Add to Certificate List → Save
Choose Add to Certificate List so that the certificate moves from the Certificate section into the list of trusted certificates, then save the PSE with the Save button.
Add to Certificate List → SaveERPClimb · illustrative screen - Button
Add to Certificate List- Action
Save
Expected result: The certificate is listed in the certificate list and the PSE is saved.
Why this matters: Saving stores the PSE and distributes it to the application servers; an unsaved change is lost.
- 6
SMICM: reload if the error remains
If the connection test still fails right after the import, ask Basis to let the ICM reload its PSE files in SMICM. Coordinate before restarting ICM services on a shared system.
SMICM: reload if the error remainsERPClimb · illustrative screen - Transaction
SMICM- Coordination
Agreed with Basis
Expected result: The ICM uses the updated certificate list.
Why this matters: The ICM can keep the previous PSE content in memory for a while.
- 7
SM59 → Connection Test
Repeat the connection test of the destination and read the HTTP status and the response header.
SM59 → Connection TestERPClimb · illustrative screen - Destination
ZPARTNER_API- Expected status
An HTTP status such as 200, 401 or 404
Expected result: An HTTP status is returned and no SSL error is shown.
Why this matters: Any HTTP status proves that the TLS handshake now succeeds; authentication is a separate topic.
Project acceptance checklist
Use this checklist to prepare evidence for your project lead.
0 of 4 checks marked. This does not certify the SAP configuration.
Validate your configuration
- The certificate appears in the certificate list of the SSL client PSE used by the call, with the expected subject, issuer and validity dates.
- The SM59 connection test for the HTTPS destination returns an HTTP response instead of an SSL handshake error.
Common errors and what to check
SSL handshake failed, or the peer certificate is untrusted (for example ICM_HTTP_SSL_PEER_CERT_UNTRUSTED in the ICM trace).
Check: The issuing CA is missing from the PSE that the destination uses.
the certificate was imported but the error stays.
Check: It was added to a different PSE than the one selected on the Logon & Security tab of the destination, or the ICM has not yet reloaded the PSE.
it works on one application server only.
Check: The PSE was not saved, so it was not distributed to the other servers.
the call failed after months of working.
Check: A certificate in the chain has expired; check the validity dates.
More in the SAP Library
Need help with a configuration error? Open ERPClimb Copilot.
Technical references & further reading
Official documentation for technical verification, release compatibility and further study.