Troubleshoot Certificate logon for ABAP Web Services
While calling a Web Service endpoint you get the error message “Logon failed (trace key xxxxxxx)”. Most probably you get this error because you did not map the PSE’s certificate that is used for authentication to a Sap user in the provider system. Here is a small how-to on how to create this mapping.
In SOAMANAGER you configured a certificate based authentication for your Web Service endpoint. In the SOAMANAGER Single Configuration this can either be
- X.509 SSL Client Certificate as transport channel authentication or
- X.509 Certificate as message authentication.
You also created a Logical Port out of the WSDL for this endpoint and you selected a signature PSE.
Note: For Web Service endpoints with X.509 certificate authentication you have to create the logical port out of a WSDL with format “Policy”. This way the security settings are done automatically. SOAMANAGER will only ask you to supply the required credentials like in this case the signature certificate.
The manual creation does not support X.509 certificates.
Map the name of the certificate to a SAP user in the system.
- Logon to the provider system and start transaction STRUST. You will see a tree with all the PSEs of your system. The entries are divided by use case. Therefore there are PSEs for SSL, WS Security, SSF, …
- Select the WS Security PSE you’ve chosen for the logical port and double click on it. The right part of the screen now shows the Own Certificate and the Certificate List.
- Mark the name of the PSE’s certificate (behind the field labeled Owner) and copy this name to your clipboard (STRG+C).
One option to maintain the mapping is by using transaction EXTID_DN.
- Start transaction EXTID_DN. A table view maitenance screen appears with a list of certificate names and the corresponding SAP user names.
- In the button row click New Entries.A new screen appears where you can create the mapping.
- Click on the pen behind the field External ID. A new dialog window opens.
- Paste in (STRG+V) the certificate name you extracted out of transaction STRUST and confirm the popup.
- Enter the SAP user which should be logged on in field User.
- Check field Activated in order to make this mapping active.
- Save the mapping by using the save icon or by pressing (STRG+S).
The X.509 certificate mapping is maintained now and the error should be gone.