abapPM/ABAP-Strust
A class-based wrapper around ABAP Trust Management (STRUST) for adding, updating, removing and listing certificates from a program, with installer and updater programs for the certificates a domain needs.
ABAP-Strust wraps transaction STRUST behind the class /apmg/cl_strust, so a program can create, load, add, remove and list certificates in a trust context instead of clicking through the transaction. Program /APMG/STRUST_INSTALLER installs the certificates a given domain needs, and /APMG/STRUST_UPDATER refreshes them later, including root and intermediate certificates. The class also generates a certificate signing request for an SSL server context and imports the signed response back into it, notifying the Internet Connection Manager. Its prerequisites are SAP Basis 7.50 or higher and three packages: ajsonajsonA JSON parser and serialiser for ABAP that parses into a flexible, unstructured node tree rather than a fixed target structure, converting to one only when asked through to_abap.independent, abap, exceptions and distinguished-name; it installs as a module through apm.
Facts
Where it sits
Who is behind it
In the atlas: maintains 1@abapPMmaintainerMarc F. BernardContributes to this
In the atlas: contributes to 4@marcfbeMarc BernardContributes to this
In the atlas: contributes to 26@mbtools2 contributors
What it declares
Every artifact
- Type
- Package
- Origin
- Independently maintained
As a package
- Where it runs
- Inside its host
- Distributed through
- abapGit
Connections
Keeping trusted and presented TLS certificates current
JSON parser and serialiser for ABAP with a node tree
Download
README
quoted from abapPM/ABAP-Strust under MIT, readTrust Management
Easy-to-use class for adding, updating, or removing certificates from ABAP Trust Management (transaction STRUST)
NO WARRANTIES, MIT License
Usage
Install Certificates
Run program /APMG/STRUST_INSTALLER and enter the domain for which you want to install the required certificates to ABAP Trust Management:


Update Certificates
Run program /APMG/STRUST_UPDATER and optionally enter domains for which you want to update the certificates to ABAP Trust Management:




API
Example of creating, updating, or removing a certificate using class /apmg/cl_strust.
CONSTANTS:
c_sslc TYPE psecontext VALUE 'SSLC' ##NO_TEXT,
c_anonym TYPE ssfappl VALUE 'ANONYM' ##NO_TEXT,
c_id TYPE ssfid VALUE 'CN=%SID SSL client SSL Client (Standard), OU=%ORG, O=MBT, C=CA' ##NO_TEXT,
c_org TYPE string VALUE 'Marc Bernard Tools' ##NO_TEXT,
c_subject TYPE string VALUE 'CN=*.marcbernardtools.com' ##NO_TEXT.
DATA(strust) = /apmg/cl_strust=>create(
context = c_sslc
application = c_anonym ).
strust->load(
create = abap_true
id = c_id
org = c_org ).
strust->get_own_certificate( ).
strust->get_certificate_list( ).
IF drop = abap_true.
strust->remove( c_subject ).
ELSE.
strust->add_pem( '<your_certificate>' ).
DATA(result) = strust->update( ).
" result-added contains newly added certificates
" result-removed contains removed certificates (if remove_expired = abap_true)
ENDIF.
The certificate for the add method needs to be provided as a table with the following format:
-----BEGIN CERTIFICATE-----
MIIGQDCCBSigAwIBAgIQCNqWSvYNNa9hfOzsk89rUjANBgkqhkiG9w0BAQsFADBg
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
...
-----END CERTIFICATE-----
Alternatively, use the method add_pem to pass the certificate as a string.
SSL Server Certificate Request and Response
Generate a certificate request for signing (CSR) using the following method. Optionally, pass a list of identifiers (DNS-SAN):
DATA(strust) = /apmg/cl_strust=>create(
context = /apmg/cl_strust=>c_context-ssls
application = /apmg/cl_strust=>c_application-dfault ).
DATA(signing_request) = strust->generate_certificate_request( identifiers ).
Import a signed certificate chain (PEM) into the SSL Server:
DATA(strust) = /apmg/cl_strust=>create(
context = /apmg/cl_strust=>c_context-ssls
application = /apmg/cl_strust=>c_application-dfault ).
strust->load( )->import_certificate_response( signed_response ).
The method stores and distributes the certificate notifying Internet Connection Manager (ICM).
Prerequisites
- SAP Basis 7.50 or higher
- Packages:
Installation
Install strust as a global module in your system using apm.
or
Specify the strust module as a dependency in your project and import it to your namespace using apm.
Contributions
All contributions are welcome! Read our Contribution Guidelines, fork this repo, and create a pull request.
You can install the developer version of ABAP STRUST using abapGit by creating a new online repository for https://github.com/abapPM/ABAP-Strust.
Recommended SAP package: /APMG/STRUST
About
Made with ❤ in Canada
Copyright 2025 apm.to Inc. https://apm.to
History
Others providing
Compare all 2 on the Certificate management page →- zstrustzstrustA tool that updates the root certificate authorities in an SAP NetWeaver server from Mozilla's certificate store, checking first that each certificate is valid and not already on the system.independent, abapUpdater for root CAs in SAP NetWeaver from Mozilla's certificate store
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
abaplint
Flavors
“Easy-to-use class for adding, updating, or removing certificates from ABAP Trust Management (transaction STRUST)” — abapPM/ABAP-Strust — README, Trust Management
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:abappm-abap-strust- JSON
- /artifacts/abappm-abap-strust.json
- MCP
- Connecting an agent