SAP Knowledge Base Article - Public

2980997 - SAP C4C Inbound Communication fail with HTTP 401 - Unauthorized at the SAP Cloud Platform Integration

Symptom

SAP C4C Inbound Messages are being rejected with error HTTP 401 - Unauthorized in the Middleware SAP Cloud Platform Integration

Environment

  • SAP Cloud for Customer
  • SAP Cloud Platform Integration

Reproducing the Issue

  1. Check the Messages in the SAP Cloud Platform Monitor and validate that some messages are being set with the error HTTP 401 - Direction ERP -> CPI -> C4C
  2. Check the SAP C4C Communication Arrangement Certificates for Inbound Interfaces - The CN and the Serial Number will Match the Certificate Set in the HCI.
  3. C4C Does not have any message regarding the HTTP 401.

Cause

The Certificated CRL (Certificate Revocation List) for the current certificate set is not Supported by SAP C4C Webdispatcher.

Usually when this issue happens it was the SSL Keypair was generated on the SAP Cloud Platform and Imported on the SAP C4C.

Resolution

A possible way to restore the connectivity is to generate the SSL Key Pair in the SAP C4C and Import in to SAP Cloud Platform Integration.

Sequence of Steps to be performed at SAP C4C:

1 - Open your C4C > Administrator > General Settings > Communication Arrangements > * Choose the Affected Communication Arrangement

2 - Click on View All on the Communication Arrangement:

3 - Click on the Technical Data:

4 - Click Edit Credentials:

5 - Click on the Certificate Tab

6 - Click and Download Key Pair

7 - Enter the password to Protect the SSL Keypair

8 - Download the Certificate p12 file  (Please note that some Internet Browsers can block this action)

9 - Copy the Certificate Serial Number and Convert to Hexadecimal to compare with the SAP Cloud Platform Integration

10 - Don't Forget to Hit the OK Button

11 - -=# SAVE AND REACTIVATE +=-  If you do not do this step the SSL Keypair Will be discarded

Importing in to your SAP Cloud Platform Integration:

1 - Logon on your SAP CPI and open the Monitoring > Keystore

2 - Add a New Key Pair on the SAP CPI

3 - Fill the options and select the file like the example :

* Use the same password you have used in the C4C Keypair Creation.

4 - The Keypair will appear on the SAP CPI Keystore List

5 - Compare the Serial Number Hexadecimal with the Serial Number Decimal with your C4C Recently Created Keypair.
* Also is a good practice to create an appointment on your calendar to alert the expiration date of the keypair.

6 - Enter on the SAP Cloud Platform Integration Design mode and Enter on your Integration Package

7 - Select the TAB Artifacts and open the iFlow that you need to change.

8 - Click on the Configure Section of the iFlow

9 - Configure the Private Key Alias on the Receiver Section of the Iflow:

10 - Click on Save and after click Deploy the iflow

Your system now should re-establish the connection with SAP C4C and the HTTP 401 will not appear anymore on the SAP Cloud Platform Monitor.

Keywords

C4C SSL Certificates, HTTP 401, Unauthorized, CPI HTTP 401, 401 , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To

Product

SAP Cloud for Customer core applications 2008