Open sandraros opened 5 months ago
Proof that SAP developers have way too much time "making traces of level 3 better for the customer". Why @SAP? 🤷
A non-ABAP solution is to extract the certificates by running .\openssl.exe s_client -servername github.com -connect github.com:443 -showcerts > C:\temp\output_openssl_showcerts.txt
via your laptop Windows Powershell console (NB: the OpenSSL Library can be installed on Windows by default via Git Bash https://git-scm.com/download/win, openssl.exe
will be stored in the subfolder \usr\bin
of your OpenSSL installation folder), or install OpenSSL on your SAP server, define the command via the transaction code sm69
and call it from your ABAP program (call to the function module SXPG_COMMAND_EXECUTE
).
For information, output file of the command above: output_openssl_showcerts.txt
That could work but sm69
is a big no-no for many.
I spent a little while and created a serverless function. You can get the certificates as JSON by calling https://tools.abappm.com/api/v1/certificates?domain=github.com
😄
Easy to test with https://tools.abappm.com
PS: Free until someone abuses it 🤷
The tool doesn't work in ABAP 7.58.
I see different content in the ICM trace level 3 (transaction code SMICM) concerning the certificates:
-----BEGIN CERTIFICATE-----
and-----END CERTIFICATE-----
),No SAP note found.
No profile parameter found.
[EDIT] Question posted here: https://community.sap.com/t5/technology-q-a/certificate-file-content-disappeared-from-the-icm-trace-level-3-in-abap-7/qaq-p/13684323
ABAP 7.52:
ABAP 7.58: