cancel
Showing results for 
Search instead for 
Did you mean: 

API Management (Trial) 401 Unauthorised Calling Cloud for Customer Service

0 Kudos

Trying to create in the trial version of API Management an api that will send a request to our Cloud for Customer (C4C) system. I have defined in C4C the communication arrangement (inbound) to use SSL credentials using my certificate for my S-User that I generated using SAP Passport. I have successfully called that C4C service using SOAUPI and proved that it works if I set keystone in the SOPAUI request to use my SAP Passport Keystore (.pfx) and fails if no keystone sent.

Have followed this blog (which appears to be the only one for certificate based services!) that explains how to create a keystore (.Jar) to upload into API Manager.

SAP Cloud Platform API Management – Client Certificate Authentication for API calls

The issue is that every time I call the API service using SOAPUI it returns 401 'Unauthorised'. Really at a loss why it's not working !

My gut feel is that the error indicates an issue with the key store (.JAR) that I have had to add into API Management (under certificates) but I followed the above blog and have used online tools to check that the certificate and private key within the .Jar file are valid.

Please Help someone as driving me mad why it's not working!!!!

Some screenshots of the issue...

Calling the C4C Service directly - Proves that C4C is configured correctly!

SOAPUI Request Showing it Fails When No SSL Keystore Set - As Expected!

SOAPUI Request Showing it Succeeds When SSL Keystore Set - As Expected!

Configuration in C4C For Inbound Service

Communication Certificate

Shows my SAP Passport S-User Cert associated with the communication system 'PJ_TEST_2

API Management Trial Configuration

API Provider pointing to C4C and using the key store certificate

Key Store Entry 'myKeys_1' showing S-User

NOTE:- The key store is a Jar and contains the private key and the whole cert chain (cert + SAP Passport root) extracted from the SAP Passport .pfx file.

Definition of the API

Using the API Providor and URL for the endpoint as per C4C inbound comm arrangement

The Failure In SOPAUI UI!

Accepted Solutions (0)

Answers (1)

Answers (1)

arun02
Newcomer
0 Kudos

peter.jones47 Were you able to figure this out?
We are stuck with the same problem